All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfdsl.logs.MetricFilter Maven / Gradle / Ivy

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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy