cfdsl.logs.MetricFilter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cfdsl Show documentation
Show all versions of cfdsl Show documentation
Java DSL for Amazon CloudFormation templates
The newest version!
package cfdsl.logs;
import cfdsl.cloudwatch.property.MetricTransformation;
import cfdsl.resource.Resource;
import cfdsl.resource.ResourceBuilder;
/**
* AWS::Logs::MetricFilter
* resource type.
*/
public final class MetricFilter extends Resource {
private MetricFilter(Builder b) {
super("AWS::Logs::MetricFilter", b);
}
public static final class Builder extends ResourceBuilder {
Builder(
String logicalName,
LogGroup group,
String[] filterPattern,
MetricTransformation metricTransformation) {
super(logicalName);
addProperty("LogGroupName", group);
addProperty("FilterPattern", filterPattern);
addProperty("MetricTransformations", metricTransformation);
}
@Override
public MetricFilter build() {
return new MetricFilter(this);
}
}
}