AppSecSlowPost

Use the akamai.AppSecSlowPost data source to update the slow post protection settings for a given security configuration and policy.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        var slowPost = new Akamai.AppSecSlowPost("slowPost", new Akamai.AppSecSlowPostArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = @var.Security_policy_id,
            SlowRateAction = "alert",
            SlowRateThresholdRate = 10,
            SlowRateThresholdPeriod = 30,
            DurationThresholdTimeout = 20,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v2/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := _var.Security_configuration
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecSlowPost(ctx, "slowPost", &akamai.AppSecSlowPostArgs{
			ConfigId:                 pulumi.Int(configuration.ConfigId),
			SecurityPolicyId:         pulumi.Any(_var.Security_policy_id),
			SlowRateAction:           pulumi.String("alert"),
			SlowRateThresholdRate:    pulumi.Int(10),
			SlowRateThresholdPeriod:  pulumi.Int(30),
			DurationThresholdTimeout: pulumi.Int(20),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
slow_post = akamai.AppSecSlowPost("slowPost",
    config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    slow_rate_action="alert",
    slow_rate_threshold_rate=10,
    slow_rate_threshold_period=30,
    duration_threshold_timeout=20)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const slowPost = new akamai.AppSecSlowPost("slowPost", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: _var.security_policy_id,
    slowRateAction: "alert",
    slowRateThresholdRate: 10,
    slowRateThresholdPeriod: 30,
    durationThresholdTimeout: 20,
});

Create a AppSecSlowPost Resource

new AppSecSlowPost(name: string, args: AppSecSlowPostArgs, opts?: CustomResourceOptions);
@overload
def AppSecSlowPost(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   config_id: Optional[int] = None,
                   duration_threshold_timeout: Optional[int] = None,
                   security_policy_id: Optional[str] = None,
                   slow_rate_action: Optional[str] = None,
                   slow_rate_threshold_period: Optional[int] = None,
                   slow_rate_threshold_rate: Optional[int] = None)
@overload
def AppSecSlowPost(resource_name: str,
                   args: AppSecSlowPostArgs,
                   opts: Optional[ResourceOptions] = None)
func NewAppSecSlowPost(ctx *Context, name string, args AppSecSlowPostArgs, opts ...ResourceOption) (*AppSecSlowPost, error)
public AppSecSlowPost(string name, AppSecSlowPostArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AppSecSlowPostArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AppSecSlowPostArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AppSecSlowPostArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AppSecSlowPostArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AppSecSlowPost Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AppSecSlowPost resource accepts the following input properties:

ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
SlowRateAction string
The action that the rule should trigger (either alert or abort).
DurationThresholdTimeout int
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
SlowRateThresholdPeriod int
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
SlowRateThresholdRate int
The average rate in bytes per second over the period specified by period before the specified action is triggered.
ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
SlowRateAction string
The action that the rule should trigger (either alert or abort).
DurationThresholdTimeout int
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
SlowRateThresholdPeriod int
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
SlowRateThresholdRate int
The average rate in bytes per second over the period specified by period before the specified action is triggered.
configId number
The ID of the security configuration to use.
securityPolicyId string
The ID of the security policy to use.
slowRateAction string
The action that the rule should trigger (either alert or abort).
durationThresholdTimeout number
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
slowRateThresholdPeriod number
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
slowRateThresholdRate number
The average rate in bytes per second over the period specified by period before the specified action is triggered.
config_id int
The ID of the security configuration to use.
security_policy_id str
The ID of the security policy to use.
slow_rate_action str
The action that the rule should trigger (either alert or abort).
duration_threshold_timeout int
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
slow_rate_threshold_period int
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
slow_rate_threshold_rate int
The average rate in bytes per second over the period specified by period before the specified action is triggered.

Outputs

All input properties are implicitly available as output properties. Additionally, the AppSecSlowPost resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing AppSecSlowPost Resource

Get an existing AppSecSlowPost resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AppSecSlowPostState, opts?: CustomResourceOptions): AppSecSlowPost
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        duration_threshold_timeout: Optional[int] = None,
        security_policy_id: Optional[str] = None,
        slow_rate_action: Optional[str] = None,
        slow_rate_threshold_period: Optional[int] = None,
        slow_rate_threshold_rate: Optional[int] = None) -> AppSecSlowPost
func GetAppSecSlowPost(ctx *Context, name string, id IDInput, state *AppSecSlowPostState, opts ...ResourceOption) (*AppSecSlowPost, error)
public static AppSecSlowPost Get(string name, Input<string> id, AppSecSlowPostState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

ConfigId int
The ID of the security configuration to use.
DurationThresholdTimeout int
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
SecurityPolicyId string
The ID of the security policy to use.
SlowRateAction string
The action that the rule should trigger (either alert or abort).
SlowRateThresholdPeriod int
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
SlowRateThresholdRate int
The average rate in bytes per second over the period specified by period before the specified action is triggered.
ConfigId int
The ID of the security configuration to use.
DurationThresholdTimeout int
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
SecurityPolicyId string
The ID of the security policy to use.
SlowRateAction string
The action that the rule should trigger (either alert or abort).
SlowRateThresholdPeriod int
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
SlowRateThresholdRate int
The average rate in bytes per second over the period specified by period before the specified action is triggered.
configId number
The ID of the security configuration to use.
durationThresholdTimeout number
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
securityPolicyId string
The ID of the security policy to use.
slowRateAction string
The action that the rule should trigger (either alert or abort).
slowRateThresholdPeriod number
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
slowRateThresholdRate number
The average rate in bytes per second over the period specified by period before the specified action is triggered.
config_id int
The ID of the security configuration to use.
duration_threshold_timeout int
The time in seconds before the first eight kilobytes of the POST body must be received to avoid triggering the specified action.
security_policy_id str
The ID of the security policy to use.
slow_rate_action str
The action that the rule should trigger (either alert or abort).
slow_rate_threshold_period int
The slow rate period value: the amount of time in seconds that the server should accept a request to determine whether a POST request is too slow.
slow_rate_threshold_rate int
The average rate in bytes per second over the period specified by period before the specified action is triggered.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.