LogMetricFilter constructor
LogMetricFilter(
- String name, {
- LogMetricFilterArgs? args,
- CustomResourceOptions? options,
Creates a new LogMetricFilter.
name The Pulumi resource name.
args Arguments used to configure this LogMetricFilter. The set of arguments for LogMetricFilter.
options Resource options controlling this resource's behavior.
Implementation
LogMetricFilter(
String name, {
LogMetricFilterArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:cloudwatch/logMetricFilter:LogMetricFilter',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
applyOnTransformedLogs = registerOutput<bool>('applyOnTransformedLogs');
logGroupName = registerOutput<String>('logGroupName');
metricTransformation = registerOutput<LogMetricFilterMetricTransformation>('metricTransformation', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return LogMetricFilterMetricTransformation.fromMap((guardedValue as Map).cast<String, dynamic>()); });
this.name = registerOutput<String>('name');
pattern = registerOutput<String>('pattern');
region = registerOutput<String>('region');
}