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.AssociateWebACL

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.

Associates a web ACL with a resource, either an application load balancer or Amazon API Gateway stage.

Synopsis

Creating a Request

data AssociateWebACL Source #

See: newAssociateWebACL smart constructor.

Constructors

AssociateWebACL' 

Fields

  • webACLId :: Text

    A unique identifier (ID) for the web ACL.

  • resourceArn :: Text

    The ARN (Amazon Resource Name) of the resource to be protected, 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 AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Read AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Show AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Generic AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Associated Types

type Rep AssociateWebACL :: Type -> Type #

NFData AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Methods

rnf :: AssociateWebACL -> () #

Hashable AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

ToJSON AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

AWSRequest AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Associated Types

type AWSResponse AssociateWebACL #

ToHeaders AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

ToPath AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

ToQuery AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

type Rep AssociateWebACL Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

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

Defined in Amazonka.WAFRegional.AssociateWebACL

newAssociateWebACL Source #

Create a value of AssociateWebACL 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:webACLId:AssociateWebACL', associateWebACL_webACLId - A unique identifier (ID) for the web ACL.

$sel:resourceArn:AssociateWebACL', associateWebACL_resourceArn - The ARN (Amazon Resource Name) of the resource to be protected, 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

associateWebACL_webACLId :: Lens' AssociateWebACL Text Source #

A unique identifier (ID) for the web ACL.

associateWebACL_resourceArn :: Lens' AssociateWebACL Text Source #

The ARN (Amazon Resource Name) of the resource to be protected, 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 AssociateWebACLResponse Source #

See: newAssociateWebACLResponse smart constructor.

Constructors

AssociateWebACLResponse' 

Fields

Instances

Instances details
Eq AssociateWebACLResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Read AssociateWebACLResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Show AssociateWebACLResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Generic AssociateWebACLResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Associated Types

type Rep AssociateWebACLResponse :: Type -> Type #

NFData AssociateWebACLResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

Methods

rnf :: AssociateWebACLResponse -> () #

type Rep AssociateWebACLResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.AssociateWebACL

type Rep AssociateWebACLResponse = D1 ('MetaData "AssociateWebACLResponse" "Amazonka.WAFRegional.AssociateWebACL" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "AssociateWebACLResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociateWebACLResponse Source #

Create a value of AssociateWebACLResponse 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:httpStatus:AssociateWebACLResponse', associateWebACLResponse_httpStatus - The response's http status code.

Response Lenses