Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data VisibilityConfig = VisibilityConfig' {}
- newVisibilityConfig :: Bool -> Bool -> Text -> VisibilityConfig
- visibilityConfig_sampledRequestsEnabled :: Lens' VisibilityConfig Bool
- visibilityConfig_cloudWatchMetricsEnabled :: Lens' VisibilityConfig Bool
- visibilityConfig_metricName :: Lens' VisibilityConfig Text
Documentation
data VisibilityConfig Source #
Defines and enables Amazon CloudWatch metrics and web request sample collection.
See: newVisibilityConfig
smart constructor.
VisibilityConfig' | |
|
Instances
:: Bool | |
-> Bool | |
-> Text | |
-> VisibilityConfig |
Create a value of VisibilityConfig
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:sampledRequestsEnabled:VisibilityConfig'
, visibilityConfig_sampledRequestsEnabled
- A boolean indicating whether WAF should store a sampling of the web
requests that match the rules. You can view the sampled requests through
the WAF console.
$sel:cloudWatchMetricsEnabled:VisibilityConfig'
, visibilityConfig_cloudWatchMetricsEnabled
- A boolean indicating whether the associated resource sends metrics to
Amazon CloudWatch. For the list of available metrics, see
WAF Metrics.
$sel:metricName:VisibilityConfig'
, visibilityConfig_metricName
- A name of the Amazon 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 WAF, for example All
and Default_Action
.
visibilityConfig_sampledRequestsEnabled :: Lens' VisibilityConfig Bool Source #
A boolean indicating whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.
visibilityConfig_cloudWatchMetricsEnabled :: Lens' VisibilityConfig Bool Source #
A boolean indicating whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics.
visibilityConfig_metricName :: Lens' VisibilityConfig Text Source #
A name of the Amazon 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 WAF, for example All
and Default_Action
.