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

com.pulumi.aws.wafv2.inputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs 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.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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs Empty = new WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs();

    /**
     * Applies only to the targeted inspection level. Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Defaults to `true`.
     * 
     */
    @Import(name="enableMachineLearning")
    private @Nullable Output enableMachineLearning;

    /**
     * @return Applies only to the targeted inspection level. Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Defaults to `true`.
     * 
     */
    public Optional> enableMachineLearning() {
        return Optional.ofNullable(this.enableMachineLearning);
    }

    /**
     * The inspection level to use for the Bot Control rule group.
     * 
     */
    @Import(name="inspectionLevel", required=true)
    private Output inspectionLevel;

    /**
     * @return The inspection level to use for the Bot Control rule group.
     * 
     */
    public Output inspectionLevel() {
        return this.inspectionLevel;
    }

    private WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs() {}

    private WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs $) {
        this.enableMachineLearning = $.enableMachineLearning;
        this.inspectionLevel = $.inspectionLevel;
    }

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

    public static final class Builder {
        private WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs $;

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

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

        /**
         * @param enableMachineLearning Applies only to the targeted inspection level. Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enableMachineLearning(@Nullable Output enableMachineLearning) {
            $.enableMachineLearning = enableMachineLearning;
            return this;
        }

        /**
         * @param enableMachineLearning Applies only to the targeted inspection level. Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enableMachineLearning(Boolean enableMachineLearning) {
            return enableMachineLearning(Output.of(enableMachineLearning));
        }

        /**
         * @param inspectionLevel The inspection level to use for the Bot Control rule group.
         * 
         * @return builder
         * 
         */
        public Builder inspectionLevel(Output inspectionLevel) {
            $.inspectionLevel = inspectionLevel;
            return this;
        }

        /**
         * @param inspectionLevel The inspection level to use for the Bot Control rule group.
         * 
         * @return builder
         * 
         */
        public Builder inspectionLevel(String inspectionLevel) {
            return inspectionLevel(Output.of(inspectionLevel));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy