libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WAFRegional.GetWebACLForResource

Description

This is AWS WAF Classic Regional 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 web ACL for the specified resource, either an application load balancer or Amazon API Gateway stage.

Synopsis

Creating a Request

data GetWebACLForResource Source #

See: newGetWebACLForResource smart constructor.

Constructors

GetWebACLForResource' 

Fields

  • resourceArn :: Text

    The ARN (Amazon Resource Name) of the resource for which to get the web ACL, either an application load balancer or Amazon API Gateway stage.

    The ARN should be in one of the following formats:

    • For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
    • For an Amazon API Gateway stage: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name

Instances

Instances details
Eq GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Read GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Show GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Generic GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Associated Types

type Rep GetWebACLForResource :: Type -> Type #

NFData GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Methods

rnf :: GetWebACLForResource -> () #

Hashable GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

ToJSON GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

AWSRequest GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Associated Types

type AWSResponse GetWebACLForResource #

ToHeaders GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

ToPath GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

ToQuery GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

type Rep GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

type Rep GetWebACLForResource = D1 ('MetaData "GetWebACLForResource" "Amazonka.WAFRegional.GetWebACLForResource" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "GetWebACLForResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

newGetWebACLForResource Source #

Create a value of GetWebACLForResource 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:resourceArn:GetWebACLForResource', getWebACLForResource_resourceArn - The ARN (Amazon Resource Name) of the resource for which to get the web ACL, either an application load balancer or Amazon API Gateway stage.

The ARN should be in one of the following formats:

  • For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
  • For an Amazon API Gateway stage: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name

Request Lenses

getWebACLForResource_resourceArn :: Lens' GetWebACLForResource Text Source #

The ARN (Amazon Resource Name) of the resource for which to get the web ACL, either an application load balancer or Amazon API Gateway stage.

The ARN should be in one of the following formats:

  • For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
  • For an Amazon API Gateway stage: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name

Destructuring the Response

data GetWebACLForResourceResponse Source #

See: newGetWebACLForResourceResponse smart constructor.

Constructors

GetWebACLForResourceResponse' 

Fields

  • webACLSummary :: Maybe WebACLSummary

    Information about the web ACL that you specified in the GetWebACLForResource request. If there is no associated resource, a null WebACLSummary is returned.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Read GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Show GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Generic GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

Associated Types

type Rep GetWebACLForResourceResponse :: Type -> Type #

NFData GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

type Rep GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.GetWebACLForResource

type Rep GetWebACLForResourceResponse = D1 ('MetaData "GetWebACLForResourceResponse" "Amazonka.WAFRegional.GetWebACLForResource" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "GetWebACLForResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "webACLSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WebACLSummary)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetWebACLForResourceResponse Source #

Create a value of GetWebACLForResourceResponse 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:webACLSummary:GetWebACLForResourceResponse', getWebACLForResourceResponse_webACLSummary - Information about the web ACL that you specified in the GetWebACLForResource request. If there is no associated resource, a null WebACLSummary is returned.

$sel:httpStatus:GetWebACLForResourceResponse', getWebACLForResourceResponse_httpStatus - The response's http status code.

Response Lenses

getWebACLForResourceResponse_webACLSummary :: Lens' GetWebACLForResourceResponse (Maybe WebACLSummary) Source #

Information about the web ACL that you specified in the GetWebACLForResource request. If there is no associated resource, a null WebACLSummary is returned.