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

com.pulumi.aws.wafregional.inputs.RuleGroupActivatedRuleArgs Maven / Gradle / Ivy

Go to download

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

The 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.wafregional.inputs;

import com.pulumi.aws.wafregional.inputs.RuleGroupActivatedRuleActionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RuleGroupActivatedRuleArgs Empty = new RuleGroupActivatedRuleArgs();

    /**
     * Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
     * 
     */
    @Import(name="action", required=true)
    private Output action;

    /**
     * @return Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
     * 
     */
    public Output action() {
        return this.action;
    }

    /**
     * Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
     * 
     */
    @Import(name="priority", required=true)
    private Output priority;

    /**
     * @return Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
     * 
     */
    public Output priority() {
        return this.priority;
    }

    /**
     * The ID of a rule
     * 
     */
    @Import(name="ruleId", required=true)
    private Output ruleId;

    /**
     * @return The ID of a rule
     * 
     */
    public Output ruleId() {
        return this.ruleId;
    }

    @Import(name="type")
    private @Nullable Output type;

    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private RuleGroupActivatedRuleArgs() {}

    private RuleGroupActivatedRuleArgs(RuleGroupActivatedRuleArgs $) {
        this.action = $.action;
        this.priority = $.priority;
        this.ruleId = $.ruleId;
        this.type = $.type;
    }

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

    public static final class Builder {
        private RuleGroupActivatedRuleArgs $;

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

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

        /**
         * @param action Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
         * 
         * @return builder
         * 
         */
        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
         * 
         * @return builder
         * 
         */
        public Builder action(RuleGroupActivatedRuleActionArgs action) {
            return action(Output.of(action));
        }

        /**
         * @param priority Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
         * 
         * @return builder
         * 
         */
        public Builder priority(Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param ruleId The ID of a rule
         * 
         * @return builder
         * 
         */
        public Builder ruleId(Output ruleId) {
            $.ruleId = ruleId;
            return this;
        }

        /**
         * @param ruleId The ID of a rule
         * 
         * @return builder
         * 
         */
        public Builder ruleId(String ruleId) {
            return ruleId(Output.of(ruleId));
        }

        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        public Builder type(String type) {
            return type(Output.of(type));
        }

        public RuleGroupActivatedRuleArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("RuleGroupActivatedRuleArgs", "action");
            }
            if ($.priority == null) {
                throw new MissingRequiredPropertyException("RuleGroupActivatedRuleArgs", "priority");
            }
            if ($.ruleId == null) {
                throw new MissingRequiredPropertyException("RuleGroupActivatedRuleArgs", "ruleId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy