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

com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementArgs 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.66.3
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.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WebAclRuleStatementRuleGroupReferenceStatementArgs Empty = new WebAclRuleStatementRuleGroupReferenceStatementArgs();

    /**
     * The Amazon Resource Name (ARN) of the `aws.wafv2.RuleGroup` resource.
     * 
     */
    @Import(name="arn", required=true)
    private Output arn;

    /**
     * @return The Amazon Resource Name (ARN) of the `aws.wafv2.RuleGroup` resource.
     * 
     */
    public Output arn() {
        return this.arn;
    }

    /**
     * Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details.
     * 
     */
    @Import(name="ruleActionOverrides")
    private @Nullable Output> ruleActionOverrides;

    /**
     * @return Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details.
     * 
     */
    public Optional>> ruleActionOverrides() {
        return Optional.ofNullable(this.ruleActionOverrides);
    }

    private WebAclRuleStatementRuleGroupReferenceStatementArgs() {}

    private WebAclRuleStatementRuleGroupReferenceStatementArgs(WebAclRuleStatementRuleGroupReferenceStatementArgs $) {
        this.arn = $.arn;
        this.ruleActionOverrides = $.ruleActionOverrides;
    }

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

    public static final class Builder {
        private WebAclRuleStatementRuleGroupReferenceStatementArgs $;

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

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

        /**
         * @param arn The Amazon Resource Name (ARN) of the `aws.wafv2.RuleGroup` resource.
         * 
         * @return builder
         * 
         */
        public Builder arn(Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The Amazon Resource Name (ARN) of the `aws.wafv2.RuleGroup` resource.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param ruleActionOverrides Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details.
         * 
         * @return builder
         * 
         */
        public Builder ruleActionOverrides(@Nullable Output> ruleActionOverrides) {
            $.ruleActionOverrides = ruleActionOverrides;
            return this;
        }

        /**
         * @param ruleActionOverrides Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details.
         * 
         * @return builder
         * 
         */
        public Builder ruleActionOverrides(List ruleActionOverrides) {
            return ruleActionOverrides(Output.of(ruleActionOverrides));
        }

        /**
         * @param ruleActionOverrides Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details.
         * 
         * @return builder
         * 
         */
        public Builder ruleActionOverrides(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideArgs... ruleActionOverrides) {
            return ruleActionOverrides(List.of(ruleActionOverrides));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy