AntiBruteForceRuleArgs

data class AntiBruteForceRuleArgs(val antiBruteForceRuleName: Output<String>? = null, val defaultRule: Output<Boolean>? = null, val failCount: Output<Int>? = null, val forbiddenTime: Output<Int>? = null, val span: Output<Int>? = null, val uuidLists: Output<List<String>>? = null) : ConvertibleToJava<AntiBruteForceRuleArgs>

Provides a Threat Detection Anti Brute Force Rule resource. For information about Threat Detection Anti Brute Force Rule and how to use it, see What is Anti Brute Force Rule.

NOTE: Available since v1.195.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.AntiBruteForceRule;
import com.pulumi.alicloud.threatdetection.AntiBruteForceRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new AntiBruteForceRule("default", AntiBruteForceRuleArgs.builder()
.antiBruteForceRuleName("apispec_example")
.failCount(80)
.forbiddenTime(360)
.span(10)
.uuidLists("032b618f-b220-4a0d-bd37-fbdc6ef58b6a")
.build());
}
}

Import

Threat Detection Anti Brute Force Rule can be imported using the id, e.g.

$ pulumi import alicloud:threatdetection/antiBruteForceRule:AntiBruteForceRule example <id>

Constructors

Link copied to clipboard
fun AntiBruteForceRuleArgs(antiBruteForceRuleName: Output<String>? = null, defaultRule: Output<Boolean>? = null, failCount: Output<Int>? = null, forbiddenTime: Output<Int>? = null, span: Output<Int>? = null, uuidLists: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AntiBruteForceRuleArgs

Properties

Link copied to clipboard
val antiBruteForceRuleName: Output<String>? = null

The name of the defense rule.

Link copied to clipboard
val defaultRule: Output<Boolean>? = null

Specifies whether to set the defense rule as the default rule.

Link copied to clipboard
val failCount: Output<Int>? = null

The threshold for the number of failed user logins when the brute-force defense rule takes effect.

Link copied to clipboard
val forbiddenTime: Output<Int>? = null

The period of time during which logons from an account are not allowed. Unit: minutes.

Link copied to clipboard
val span: Output<Int>? = null

The period of time during which logon failures from an account are measured. Unit: minutes. If Span is set to 10, the defense rule takes effect when the logon failures measured within 10 minutes reaches the specified threshold. The IP address of attackers cannot be used to log on to the server in the specified period of time.

Link copied to clipboard
val uuidLists: Output<List<String>>? = null

An array consisting of the UUIDs of servers to which the defense rule is applied.The binding status must be Enterprise Edition.