Skip to content

WAFV2 module

Index > WAFV2

Auto-generated documentation for WAFV2 type annotations stubs module types-aiobotocore-wafv2.

How to install

From PyPI with pip

Install types-aioboto3 for WAFV2 service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[wafv2]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[wafv2]'


# standalone installation
python -m pip install types-aiobotocore-wafv2

How to uninstall

python -m pip uninstall -y types-aiobotocore-wafv2

Usage

Code samples can be found in Examples.

WAFV2Client

Type annotations and code completion for session.client("wafv2") as WAFV2Client boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_wafv2.client import WAFV2Client


session = Session()
async with session.client("wafv2") as client:
    client: WAFV2Client

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_wafv2.literals import ActionValueType

def get_value() -> ActionValueType:
    return "ALLOW"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_wafv2.type_defs import ActionConditionTypeDef

def get_value() -> ActionConditionTypeDef:
    return {
        "Action": ...,
    }