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

com.pulumi.aws.waf.inputs.WebAclRuleActionArgs 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.waf.inputs;

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


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

    public static final WebAclRuleActionArgs Empty = new WebAclRuleActionArgs();

    /**
     * valid values are: `BLOCK`, `ALLOW`, or `COUNT`
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return valid values are: `BLOCK`, `ALLOW`, or `COUNT`
     * 
     */
    public Output type() {
        return this.type;
    }

    private WebAclRuleActionArgs() {}

    private WebAclRuleActionArgs(WebAclRuleActionArgs $) {
        this.type = $.type;
    }

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

    public static final class Builder {
        private WebAclRuleActionArgs $;

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

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

        /**
         * @param type valid values are: `BLOCK`, `ALLOW`, or `COUNT`
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type valid values are: `BLOCK`, `ALLOW`, or `COUNT`
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public WebAclRuleActionArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("WebAclRuleActionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy