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

com.pulumi.aws.wafv2.inputs.WebAclVisibilityConfigArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.wafv2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;


public final class WebAclVisibilityConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebAclVisibilityConfigArgs Empty = new WebAclVisibilityConfigArgs();

    /**
     * Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics).
     * 
     */
    @Import(name="cloudwatchMetricsEnabled", required=true)
    private Output cloudwatchMetricsEnabled;

    /**
     * @return Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics).
     * 
     */
    public Output cloudwatchMetricsEnabled() {
        return this.cloudwatchMetricsEnabled;
    }

    /**
     * A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (\_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`.
     * 
     */
    @Import(name="metricName", required=true)
    private Output metricName;

    /**
     * @return A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (\_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`.
     * 
     */
    public Output metricName() {
        return this.metricName;
    }

    /**
     * Whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
     * 
     */
    @Import(name="sampledRequestsEnabled", required=true)
    private Output sampledRequestsEnabled;

    /**
     * @return Whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
     * 
     */
    public Output sampledRequestsEnabled() {
        return this.sampledRequestsEnabled;
    }

    private WebAclVisibilityConfigArgs() {}

    private WebAclVisibilityConfigArgs(WebAclVisibilityConfigArgs $) {
        this.cloudwatchMetricsEnabled = $.cloudwatchMetricsEnabled;
        this.metricName = $.metricName;
        this.sampledRequestsEnabled = $.sampledRequestsEnabled;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WebAclVisibilityConfigArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WebAclVisibilityConfigArgs $;

        public Builder() {
            $ = new WebAclVisibilityConfigArgs();
        }

        public Builder(WebAclVisibilityConfigArgs defaults) {
            $ = new WebAclVisibilityConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param cloudwatchMetricsEnabled Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics).
         * 
         * @return builder
         * 
         */
        public Builder cloudwatchMetricsEnabled(Output cloudwatchMetricsEnabled) {
            $.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled;
            return this;
        }

        /**
         * @param cloudwatchMetricsEnabled Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics).
         * 
         * @return builder
         * 
         */
        public Builder cloudwatchMetricsEnabled(Boolean cloudwatchMetricsEnabled) {
            return cloudwatchMetricsEnabled(Output.of(cloudwatchMetricsEnabled));
        }

        /**
         * @param metricName A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (\_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`.
         * 
         * @return builder
         * 
         */
        public Builder metricName(Output metricName) {
            $.metricName = metricName;
            return this;
        }

        /**
         * @param metricName A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (\_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`.
         * 
         * @return builder
         * 
         */
        public Builder metricName(String metricName) {
            return metricName(Output.of(metricName));
        }

        /**
         * @param sampledRequestsEnabled Whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
         * 
         * @return builder
         * 
         */
        public Builder sampledRequestsEnabled(Output sampledRequestsEnabled) {
            $.sampledRequestsEnabled = sampledRequestsEnabled;
            return this;
        }

        /**
         * @param sampledRequestsEnabled Whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console.
         * 
         * @return builder
         * 
         */
        public Builder sampledRequestsEnabled(Boolean sampledRequestsEnabled) {
            return sampledRequestsEnabled(Output.of(sampledRequestsEnabled));
        }

        public WebAclVisibilityConfigArgs build() {
            if ($.cloudwatchMetricsEnabled == null) {
                throw new MissingRequiredPropertyException("WebAclVisibilityConfigArgs", "cloudwatchMetricsEnabled");
            }
            if ($.metricName == null) {
                throw new MissingRequiredPropertyException("WebAclVisibilityConfigArgs", "metricName");
            }
            if ($.sampledRequestsEnabled == null) {
                throw new MissingRequiredPropertyException("WebAclVisibilityConfigArgs", "sampledRequestsEnabled");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy