WAFV2 class

Constructors

WAFV2({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

associateWebACL({required String resourceArn, required String webACLArn}) Future<void>
For AWS CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To associate a Web ACL, in the CloudFront call UpdateDistribution, set the web ACL ID to the Amazon Resource Name (ARN) of the Web ACL. For information, see UpdateDistribution.
checkCapacity({required List<Rule> rules, required Scope scope}) Future<CheckCapacityResponse>
RuleGroup
close() → void
Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
createIPSet({required List<String> addresses, required IPAddressVersion iPAddressVersion, required String name, required Scope scope, String? description, List<Tag>? tags}) Future<CreateIPSetResponse>
IPSet
createRegexPatternSet({required String name, required List<Regex> regularExpressionList, required Scope scope, String? description, List<Tag>? tags}) Future<CreateRegexPatternSetResponse>
RegexPatternSet
createRuleGroup({required int capacity, required String name, required Scope scope, required VisibilityConfig visibilityConfig, String? description, List<Rule>? rules, List<Tag>? tags}) Future<CreateRuleGroupResponse>
RuleGroup
createWebACL({required DefaultAction defaultAction, required String name, required Scope scope, required VisibilityConfig visibilityConfig, String? description, List<Rule>? rules, List<Tag>? tags}) Future<CreateWebACLResponse>
WebACL
deleteFirewallManagerRuleGroups({required String webACLArn, required String webACLLockToken}) Future<DeleteFirewallManagerRuleGroupsResponse>
Deletes all rule groups that are managed by AWS Firewall Manager for the specified web ACL.
deleteIPSet({required String id, required String lockToken, required String name, required Scope scope}) Future<void>
IPSet
deleteLoggingConfiguration({required String resourceArn}) Future<void>
LoggingConfiguration
deletePermissionPolicy({required String resourceArn}) Future<void>
Permanently deletes an IAM policy from the specified rule group.
deleteRegexPatternSet({required String id, required String lockToken, required String name, required Scope scope}) Future<void>
RegexPatternSet
deleteRuleGroup({required String id, required String lockToken, required String name, required Scope scope}) Future<void>
RuleGroup
deleteWebACL({required String id, required String lockToken, required String name, required Scope scope}) Future<void>
WebACL
describeManagedRuleGroup({required String name, required Scope scope, required String vendorName}) Future<DescribeManagedRuleGroupResponse>
May throw WAFInternalErrorException. May throw WAFInvalidParameterException. May throw WAFInvalidResourceException. May throw WAFNonexistentItemException. May throw WAFInvalidOperationException.
disassociateWebACL({required String resourceArn}) Future<void>
For AWS CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To disassociate a Web ACL, provide an empty web ACL ID in the CloudFront call UpdateDistribution. For information, see UpdateDistribution.
getIPSet({required String id, required String name, required Scope scope}) Future<GetIPSetResponse>
IPSet
getLoggingConfiguration({required String resourceArn}) Future<GetLoggingConfigurationResponse>
LoggingConfiguration
getPermissionPolicy({required String resourceArn}) Future<GetPermissionPolicyResponse>
Returns the IAM policy that is attached to the specified rule group.
getRateBasedStatementManagedKeys({required String ruleName, required Scope scope, required String webACLId, required String webACLName}) Future<GetRateBasedStatementManagedKeysResponse>
May throw WAFInternalErrorException. May throw WAFInvalidParameterException. May throw WAFNonexistentItemException. May throw WAFInvalidOperationException.
getRegexPatternSet({required String id, required String name, required Scope scope}) Future<GetRegexPatternSetResponse>
RegexPatternSet
getRuleGroup({required String id, required String name, required Scope scope}) Future<GetRuleGroupResponse>
RuleGroup
getSampledRequests({required int maxItems, required String ruleMetricName, required Scope scope, required TimeWindow timeWindow, required String webAclArn}) Future<GetSampledRequestsResponse>
GetSampledRequests returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, GetSampledRequests returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.
getWebACL({required String id, required String name, required Scope scope}) Future<GetWebACLResponse>
WebACL
getWebACLForResource({required String resourceArn}) Future<GetWebACLForResourceResponse>
WebACL
listAvailableManagedRuleGroups({required Scope scope, int? limit, String? nextMarker}) Future<ListAvailableManagedRuleGroupsResponse>
May throw WAFInternalErrorException. May throw WAFInvalidParameterException. May throw WAFInvalidOperationException.
listIPSets({required Scope scope, int? limit, String? nextMarker}) Future<ListIPSetsResponse>
IPSetSummary
listLoggingConfigurations({int? limit, String? nextMarker, Scope? scope}) Future<ListLoggingConfigurationsResponse>
LoggingConfiguration
listRegexPatternSets({required Scope scope, int? limit, String? nextMarker}) Future<ListRegexPatternSetsResponse>
RegexPatternSetSummary
listResourcesForWebACL({required String webACLArn, ResourceType? resourceType}) Future<ListResourcesForWebACLResponse>
ListDistributionsByWebACLId
listRuleGroups({required Scope scope, int? limit, String? nextMarker}) Future<ListRuleGroupsResponse>
RuleGroupSummary
listTagsForResource({required String resourceARN, int? limit, String? nextMarker}) Future<ListTagsForResourceResponse>
TagInfoForResource
listWebACLs({required Scope scope, int? limit, String? nextMarker}) Future<ListWebACLsResponse>
WebACLSummary
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putLoggingConfiguration({required LoggingConfiguration loggingConfiguration}) Future<PutLoggingConfigurationResponse>
LoggingConfiguration
putPermissionPolicy({required String policy, required String resourceArn}) Future<void>
Attaches an IAM policy to the specified resource. Use this to share a rule group across accounts.
tagResource({required String resourceARN, required List<Tag> tags}) Future<void>
You can tag the AWS resources that you manage through AWS WAF: web ACLs, rule groups, IP sets, and regex pattern sets. You can't manage or view tags through the AWS WAF console.
toString() String
A string representation of this object.
inherited
untagResource({required String resourceARN, required List<String> tagKeys}) Future<void>
May throw WAFInternalErrorException. May throw WAFInvalidParameterException. May throw WAFNonexistentItemException. May throw WAFTagOperationException. May throw WAFTagOperationInternalErrorException. May throw WAFInvalidOperationException.
updateIPSet({required List<String> addresses, required String id, required String lockToken, required String name, required Scope scope, String? description}) Future<UpdateIPSetResponse>
IPSet
updateRegexPatternSet({required String id, required String lockToken, required String name, required List<Regex> regularExpressionList, required Scope scope, String? description}) Future<UpdateRegexPatternSetResponse>
RegexPatternSet
updateRuleGroup({required String id, required String lockToken, required String name, required Scope scope, required VisibilityConfig visibilityConfig, String? description, List<Rule>? rules}) Future<UpdateRuleGroupResponse>
RuleGroup
updateWebACL({required DefaultAction defaultAction, required String id, required String lockToken, required String name, required Scope scope, required VisibilityConfig visibilityConfig, String? description, List<Rule>? rules}) Future<UpdateWebACLResponse>
WebACL

Operators

operator ==(Object other) bool
The equality operator.
inherited