square-forest-40660
08/12/2024, 1:37 PMvisibilityConfig: pulumi.Input<aws.types.input.wafv2.WebAclRuleVisibilityConfig>
as
visibilityConfig: {
cloudWatchMetricsEnabled: true,
metricName: 'DefaultRateLimit',
sampledRequestsEnabled: true,
},
Which is strange because the source provides the following exported interface:
export interface wafv2.WebAclRuleVisibilityConfig {
cloudwatchMetricsEnabled: pulumi.Input<boolean>
metricName: pulumi.Input<string>
sampledRequestsEnabled: pulumi.Input<boolean>
}
I see the error ->
Object literal may only specify known properties, and cloudWatchMetricsEnabled does not exist in type Input<WebAclRuleVisibilityConfig>
Also while referring to the AWS documentation, It supports my current implementation:
https://docs.aws.amazon.com/waf/latest/APIReference/API_VisibilityConfig.htmlmodern-zebra-45309
08/12/2024, 1:57 PMcloudwatch
not cloudWatch
future-hairdresser-70637
08/12/2024, 1:57 PMcloudwatchMetricsEnabled
with w lowercase? maybe that's itmodern-zebra-45309
08/12/2024, 1:58 PMfuture-hairdresser-70637
08/12/2024, 1:58 PMmodern-zebra-45309
08/12/2024, 1:59 PMsquare-forest-40660
08/12/2024, 2:00 PMfuture-hairdresser-70637
08/12/2024, 2:01 PMmodern-zebra-45309
08/12/2024, 2:01 PMfuture-hairdresser-70637
08/12/2024, 2:03 PMNote: There are over 200 nested types for this resource. Only the first 200 types are included in this documentation.
future-hairdresser-70637
08/12/2024, 2:04 PMfuture-hairdresser-70637
08/12/2024, 2:04 PMmodern-zebra-45309
08/12/2024, 2:07 PMlittle-cartoon-10569
08/12/2024, 8:44 PM