amazonka-wafv2-2.0: Amazon WAFV2 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.WAFV2.GetWebACLForResource

Description

Retrieves the WebACL for the specified resource.

Synopsis

Creating a Request

data GetWebACLForResource Source #

See: newGetWebACLForResource smart constructor.

Constructors

GetWebACLForResource' 

Fields

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.

    The ARN must 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 REST API: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
    • For an AppSync GraphQL API: arn:aws:appsync:region:account-id:apis/GraphQLApiId
    • For an Amazon Cognito user pool: arn:aws:cognito-idp:region:account-id:userpool/user-pool-id

Instances

Instances details
ToJSON GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

ToHeaders GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

ToPath GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

ToQuery GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

AWSRequest GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Associated Types

type AWSResponse GetWebACLForResource #

Generic GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Associated Types

type Rep GetWebACLForResource :: Type -> Type #

Read GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Show GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

NFData GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Methods

rnf :: GetWebACLForResource -> () #

Eq GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Hashable GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

type AWSResponse GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

type Rep GetWebACLForResource Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

type Rep GetWebACLForResource = D1 ('MetaData "GetWebACLForResource" "Amazonka.WAFV2.GetWebACLForResource" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "GetWebACLForResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

GetWebACLForResource, getWebACLForResource_resourceArn - The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.

The ARN must 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 REST API: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
  • For an AppSync GraphQL API: arn:aws:appsync:region:account-id:apis/GraphQLApiId
  • For an Amazon Cognito user pool: arn:aws:cognito-idp:region:account-id:userpool/user-pool-id

Request Lenses

getWebACLForResource_resourceArn :: Lens' GetWebACLForResource Text Source #

The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.

The ARN must 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 REST API: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
  • For an AppSync GraphQL API: arn:aws:appsync:region:account-id:apis/GraphQLApiId
  • For an Amazon Cognito user pool: arn:aws:cognito-idp:region:account-id:userpool/user-pool-id

Destructuring the Response

data GetWebACLForResourceResponse Source #

See: newGetWebACLForResourceResponse smart constructor.

Constructors

GetWebACLForResourceResponse' 

Fields

  • webACL :: Maybe WebACL

    The web ACL that is associated with the resource. If there is no associated resource, WAF returns a null web ACL.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Associated Types

type Rep GetWebACLForResourceResponse :: Type -> Type #

Read GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Show GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

NFData GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

Eq GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

type Rep GetWebACLForResourceResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetWebACLForResource

type Rep GetWebACLForResourceResponse = D1 ('MetaData "GetWebACLForResourceResponse" "Amazonka.WAFV2.GetWebACLForResource" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "GetWebACLForResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "webACL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WebACL)) :*: 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:webACL:GetWebACLForResourceResponse', getWebACLForResourceResponse_webACL - The web ACL that is associated with the resource. If there is no associated resource, WAF returns a null web ACL.

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

Response Lenses

getWebACLForResourceResponse_webACL :: Lens' GetWebACLForResourceResponse (Maybe WebACL) Source #

The web ACL that is associated with the resource. If there is no associated resource, WAF returns a null web ACL.