VisibilityConfig class

Defines and enables Amazon CloudWatch metrics and web request sample collection.

Constructors

VisibilityConfig({required bool cloudWatchMetricsEnabled, required String metricName, required bool sampledRequestsEnabled})
VisibilityConfig.fromJson(Map<String, dynamic> json)
factory

Properties

cloudWatchMetricsEnabled bool
A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see AWS WAF Metrics.
final
hashCode int
The hash code for this object.
no setterinherited
metricName String
A name of the CloudWatch metric. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names reserved for AWS WAF, for example "All" and "Default_Action."
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampledRequestsEnabled bool
A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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