WAFRegionalClient#
Index > WAFRegional > WAFRegionalClient
Auto-generated documentation for WAFRegional type annotations stubs module mypy-boto3-waf-regional.
WAFRegionalClient#
Type annotations and code completion for boto3.client("waf-regional")
.
boto3 documentation
# WAFRegionalClient usage example
from boto3.session import Session
from mypy_boto3_waf_regional.client import WAFRegionalClient
def get_waf-regional_client() -> WAFRegionalClient:
return Session().client("waf-regional")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("waf-regional").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("waf-regional")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.WAFBadRequestException,
client.exceptions.WAFDisallowedNameException,
client.exceptions.WAFEntityMigrationException,
client.exceptions.WAFInternalErrorException,
client.exceptions.WAFInvalidAccountException,
client.exceptions.WAFInvalidOperationException,
client.exceptions.WAFInvalidParameterException,
client.exceptions.WAFInvalidPermissionPolicyException,
client.exceptions.WAFInvalidRegexPatternException,
client.exceptions.WAFLimitsExceededException,
client.exceptions.WAFNonEmptyEntityException,
client.exceptions.WAFNonexistentContainerException,
client.exceptions.WAFNonexistentItemException,
client.exceptions.WAFReferencedItemException,
client.exceptions.WAFServiceLinkedRoleErrorException,
client.exceptions.WAFStaleDataException,
client.exceptions.WAFSubscriptionNotFoundException,
client.exceptions.WAFTagOperationException,
client.exceptions.WAFTagOperationInternalErrorException,
client.exceptions.WAFUnavailableEntityException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_waf_regional.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
associate_web_acl#
.
Type annotations and code completion for boto3.client("waf-regional").associate_web_acl
method.
boto3 documentation
# associate_web_acl method definition
def associate_web_acl(
self,
*,
WebACLId: str,
ResourceArn: str,
) -> Dict[str, Any]:
...
# associate_web_acl method usage example with argument unpacking
kwargs: AssociateWebACLRequestRequestTypeDef = { # (1)
"WebACLId": ...,
"ResourceArn": ...,
}
parent.associate_web_acl(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("waf-regional").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("waf-regional").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_byte_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_byte_match_set
method.
boto3 documentation
# create_byte_match_set method definition
def create_byte_match_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateByteMatchSetResponseTypeDef: # (1)
...
# create_byte_match_set method usage example with argument unpacking
kwargs: CreateByteMatchSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_byte_match_set(**kwargs)
create_geo_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_geo_match_set
method.
boto3 documentation
# create_geo_match_set method definition
def create_geo_match_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateGeoMatchSetResponseTypeDef: # (1)
...
# create_geo_match_set method usage example with argument unpacking
kwargs: CreateGeoMatchSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_geo_match_set(**kwargs)
create_ip_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_ip_set
method.
boto3 documentation
# create_ip_set method definition
def create_ip_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateIPSetResponseTypeDef: # (1)
...
# create_ip_set method usage example with argument unpacking
kwargs: CreateIPSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_ip_set(**kwargs)
create_rate_based_rule#
.
Type annotations and code completion for boto3.client("waf-regional").create_rate_based_rule
method.
boto3 documentation
# create_rate_based_rule method definition
def create_rate_based_rule(
self,
*,
Name: str,
MetricName: str,
RateKey: RateKeyType, # (1)
RateLimit: int,
ChangeToken: str,
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateRateBasedRuleResponseTypeDef: # (3)
...
- See RateKeyType
- See TagTypeDef
- See CreateRateBasedRuleResponseTypeDef
# create_rate_based_rule method usage example with argument unpacking
kwargs: CreateRateBasedRuleRequestRequestTypeDef = { # (1)
"Name": ...,
"MetricName": ...,
"RateKey": ...,
"RateLimit": ...,
"ChangeToken": ...,
}
parent.create_rate_based_rule(**kwargs)
create_regex_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_regex_match_set
method.
boto3 documentation
# create_regex_match_set method definition
def create_regex_match_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateRegexMatchSetResponseTypeDef: # (1)
...
# create_regex_match_set method usage example with argument unpacking
kwargs: CreateRegexMatchSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_regex_match_set(**kwargs)
create_regex_pattern_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_regex_pattern_set
method.
boto3 documentation
# create_regex_pattern_set method definition
def create_regex_pattern_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateRegexPatternSetResponseTypeDef: # (1)
...
# create_regex_pattern_set method usage example with argument unpacking
kwargs: CreateRegexPatternSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_regex_pattern_set(**kwargs)
create_rule#
.
Type annotations and code completion for boto3.client("waf-regional").create_rule
method.
boto3 documentation
# create_rule method definition
def create_rule(
self,
*,
Name: str,
MetricName: str,
ChangeToken: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateRuleResponseTypeDef: # (2)
...
- See TagTypeDef
- See CreateRuleResponseTypeDef
# create_rule method usage example with argument unpacking
kwargs: CreateRuleRequestRequestTypeDef = { # (1)
"Name": ...,
"MetricName": ...,
"ChangeToken": ...,
}
parent.create_rule(**kwargs)
create_rule_group#
.
Type annotations and code completion for boto3.client("waf-regional").create_rule_group
method.
boto3 documentation
# create_rule_group method definition
def create_rule_group(
self,
*,
Name: str,
MetricName: str,
ChangeToken: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateRuleGroupResponseTypeDef: # (2)
...
# create_rule_group method usage example with argument unpacking
kwargs: CreateRuleGroupRequestRequestTypeDef = { # (1)
"Name": ...,
"MetricName": ...,
"ChangeToken": ...,
}
parent.create_rule_group(**kwargs)
create_size_constraint_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_size_constraint_set
method.
boto3 documentation
# create_size_constraint_set method definition
def create_size_constraint_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateSizeConstraintSetResponseTypeDef: # (1)
...
# create_size_constraint_set method usage example with argument unpacking
kwargs: CreateSizeConstraintSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_size_constraint_set(**kwargs)
create_sql_injection_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_sql_injection_match_set
method.
boto3 documentation
# create_sql_injection_match_set method definition
def create_sql_injection_match_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateSqlInjectionMatchSetResponseTypeDef: # (1)
...
# create_sql_injection_match_set method usage example with argument unpacking
kwargs: CreateSqlInjectionMatchSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_sql_injection_match_set(**kwargs)
create_web_acl#
.
Type annotations and code completion for boto3.client("waf-regional").create_web_acl
method.
boto3 documentation
# create_web_acl method definition
def create_web_acl(
self,
*,
Name: str,
MetricName: str,
DefaultAction: WafActionTypeDef, # (1)
ChangeToken: str,
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateWebACLResponseTypeDef: # (3)
...
- See WafActionTypeDef
- See TagTypeDef
- See CreateWebACLResponseTypeDef
# create_web_acl method usage example with argument unpacking
kwargs: CreateWebACLRequestRequestTypeDef = { # (1)
"Name": ...,
"MetricName": ...,
"DefaultAction": ...,
"ChangeToken": ...,
}
parent.create_web_acl(**kwargs)
create_web_acl_migration_stack#
Creates an AWS CloudFormation WAFV2 template for the specified web ACL in the specified Amazon S3 bucket.
Type annotations and code completion for boto3.client("waf-regional").create_web_acl_migration_stack
method.
boto3 documentation
# create_web_acl_migration_stack method definition
def create_web_acl_migration_stack(
self,
*,
WebACLId: str,
S3BucketName: str,
IgnoreUnsupportedType: bool,
) -> CreateWebACLMigrationStackResponseTypeDef: # (1)
...
# create_web_acl_migration_stack method usage example with argument unpacking
kwargs: CreateWebACLMigrationStackRequestRequestTypeDef = { # (1)
"WebACLId": ...,
"S3BucketName": ...,
"IgnoreUnsupportedType": ...,
}
parent.create_web_acl_migration_stack(**kwargs)
create_xss_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").create_xss_match_set
method.
boto3 documentation
# create_xss_match_set method definition
def create_xss_match_set(
self,
*,
Name: str,
ChangeToken: str,
) -> CreateXssMatchSetResponseTypeDef: # (1)
...
# create_xss_match_set method usage example with argument unpacking
kwargs: CreateXssMatchSetRequestRequestTypeDef = { # (1)
"Name": ...,
"ChangeToken": ...,
}
parent.create_xss_match_set(**kwargs)
delete_byte_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").delete_byte_match_set
method.
boto3 documentation
# delete_byte_match_set method definition
def delete_byte_match_set(
self,
*,
ByteMatchSetId: str,
ChangeToken: str,
) -> DeleteByteMatchSetResponseTypeDef: # (1)
...
# delete_byte_match_set method usage example with argument unpacking
kwargs: DeleteByteMatchSetRequestRequestTypeDef = { # (1)
"ByteMatchSetId": ...,
"ChangeToken": ...,
}
parent.delete_byte_match_set(**kwargs)
delete_geo_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").delete_geo_match_set
method.
boto3 documentation
# delete_geo_match_set method definition
def delete_geo_match_set(
self,
*,
GeoMatchSetId: str,
ChangeToken: str,
) -> DeleteGeoMatchSetResponseTypeDef: # (1)
...
# delete_geo_match_set method usage example with argument unpacking
kwargs: DeleteGeoMatchSetRequestRequestTypeDef = { # (1)
"GeoMatchSetId": ...,
"ChangeToken": ...,
}
parent.delete_geo_match_set(**kwargs)
delete_ip_set#
.
Type annotations and code completion for boto3.client("waf-regional").delete_ip_set
method.
boto3 documentation
# delete_ip_set method definition
def delete_ip_set(
self,
*,
IPSetId: str,
ChangeToken: str,
) -> DeleteIPSetResponseTypeDef: # (1)
...
# delete_ip_set method usage example with argument unpacking
kwargs: DeleteIPSetRequestRequestTypeDef = { # (1)
"IPSetId": ...,
"ChangeToken": ...,
}
parent.delete_ip_set(**kwargs)
delete_logging_configuration#
.
Type annotations and code completion for boto3.client("waf-regional").delete_logging_configuration
method.
boto3 documentation
# delete_logging_configuration method definition
def delete_logging_configuration(
self,
*,
ResourceArn: str,
) -> Dict[str, Any]:
...
# delete_logging_configuration method usage example with argument unpacking
kwargs: DeleteLoggingConfigurationRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.delete_logging_configuration(**kwargs)
delete_permission_policy#
.
Type annotations and code completion for boto3.client("waf-regional").delete_permission_policy
method.
boto3 documentation
# delete_permission_policy method definition
def delete_permission_policy(
self,
*,
ResourceArn: str,
) -> Dict[str, Any]:
...
# delete_permission_policy method usage example with argument unpacking
kwargs: DeletePermissionPolicyRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.delete_permission_policy(**kwargs)
delete_rate_based_rule#
.
Type annotations and code completion for boto3.client("waf-regional").delete_rate_based_rule
method.
boto3 documentation
# delete_rate_based_rule method definition
def delete_rate_based_rule(
self,
*,
RuleId: str,
ChangeToken: str,
) -> DeleteRateBasedRuleResponseTypeDef: # (1)
...
# delete_rate_based_rule method usage example with argument unpacking
kwargs: DeleteRateBasedRuleRequestRequestTypeDef = { # (1)
"RuleId": ...,
"ChangeToken": ...,
}
parent.delete_rate_based_rule(**kwargs)
delete_regex_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").delete_regex_match_set
method.
boto3 documentation
# delete_regex_match_set method definition
def delete_regex_match_set(
self,
*,
RegexMatchSetId: str,
ChangeToken: str,
) -> DeleteRegexMatchSetResponseTypeDef: # (1)
...
# delete_regex_match_set method usage example with argument unpacking
kwargs: DeleteRegexMatchSetRequestRequestTypeDef = { # (1)
"RegexMatchSetId": ...,
"ChangeToken": ...,
}
parent.delete_regex_match_set(**kwargs)
delete_regex_pattern_set#
.
Type annotations and code completion for boto3.client("waf-regional").delete_regex_pattern_set
method.
boto3 documentation
# delete_regex_pattern_set method definition
def delete_regex_pattern_set(
self,
*,
RegexPatternSetId: str,
ChangeToken: str,
) -> DeleteRegexPatternSetResponseTypeDef: # (1)
...
# delete_regex_pattern_set method usage example with argument unpacking
kwargs: DeleteRegexPatternSetRequestRequestTypeDef = { # (1)
"RegexPatternSetId": ...,
"ChangeToken": ...,
}
parent.delete_regex_pattern_set(**kwargs)
delete_rule#
.
Type annotations and code completion for boto3.client("waf-regional").delete_rule
method.
boto3 documentation
# delete_rule method definition
def delete_rule(
self,
*,
RuleId: str,
ChangeToken: str,
) -> DeleteRuleResponseTypeDef: # (1)
...
# delete_rule method usage example with argument unpacking
kwargs: DeleteRuleRequestRequestTypeDef = { # (1)
"RuleId": ...,
"ChangeToken": ...,
}
parent.delete_rule(**kwargs)
delete_rule_group#
.
Type annotations and code completion for boto3.client("waf-regional").delete_rule_group
method.
boto3 documentation
# delete_rule_group method definition
def delete_rule_group(
self,
*,
RuleGroupId: str,
ChangeToken: str,
) -> DeleteRuleGroupResponseTypeDef: # (1)
...
# delete_rule_group method usage example with argument unpacking
kwargs: DeleteRuleGroupRequestRequestTypeDef = { # (1)
"RuleGroupId": ...,
"ChangeToken": ...,
}
parent.delete_rule_group(**kwargs)
delete_size_constraint_set#
.
Type annotations and code completion for boto3.client("waf-regional").delete_size_constraint_set
method.
boto3 documentation
# delete_size_constraint_set method definition
def delete_size_constraint_set(
self,
*,
SizeConstraintSetId: str,
ChangeToken: str,
) -> DeleteSizeConstraintSetResponseTypeDef: # (1)
...
# delete_size_constraint_set method usage example with argument unpacking
kwargs: DeleteSizeConstraintSetRequestRequestTypeDef = { # (1)
"SizeConstraintSetId": ...,
"ChangeToken": ...,
}
parent.delete_size_constraint_set(**kwargs)
delete_sql_injection_match_set#
.
Type annotations and code completion for boto3.client("waf-regional").delete_sql_injection_match_set
method.