Anti Brute Force Rule Args
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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.threatdetection.AntiBruteForceRule("default", {
antiBruteForceRuleName: "apispec_example",
forbiddenTime: 360,
uuidLists: ["032b618f-b220-4a0d-bd37-fbdc6ef58b6a"],
failCount: 80,
span: 10,
});import pulumi
import pulumi_alicloud as alicloud
default = alicloud.threatdetection.AntiBruteForceRule("default",
anti_brute_force_rule_name="apispec_example",
forbidden_time=360,
uuid_lists=["032b618f-b220-4a0d-bd37-fbdc6ef58b6a"],
fail_count=80,
span=10)using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.ThreatDetection.AntiBruteForceRule("default", new()
{
AntiBruteForceRuleName = "apispec_example",
ForbiddenTime = 360,
UuidLists = new[]
{
"032b618f-b220-4a0d-bd37-fbdc6ef58b6a",
},
FailCount = 80,
Span = 10,
});
});package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := threatdetection.NewAntiBruteForceRule(ctx, "default", &threatdetection.AntiBruteForceRuleArgs{
AntiBruteForceRuleName: pulumi.String("apispec_example"),
ForbiddenTime: pulumi.Int(360),
UuidLists: pulumi.StringArray{
pulumi.String("032b618f-b220-4a0d-bd37-fbdc6ef58b6a"),
},
FailCount: pulumi.Int(80),
Span: pulumi.Int(10),
})
if err != nil {
return err
}
return nil
})
}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")
.forbiddenTime(360)
.uuidLists("032b618f-b220-4a0d-bd37-fbdc6ef58b6a")
.failCount(80)
.span(10)
.build());
}
}resources:
default:
type: alicloud:threatdetection:AntiBruteForceRule
properties:
antiBruteForceRuleName: apispec_example
forbiddenTime: 360
uuidLists:
- 032b618f-b220-4a0d-bd37-fbdc6ef58b6a
failCount: 80
span: 10Import
Threat Detection Anti Brute Force Rule can be imported using the id, e.g.
$ pulumi import alicloud:threatdetection/antiBruteForceRule:AntiBruteForceRule example <id>Constructors
Properties
The name of the defense rule.
Specifies whether to set the defense rule as the default rule.
The period of time during which logons from an account are not allowed. Unit: minutes.
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.