Akamai

Pulumi Official
Package maintained by Pulumi
v2.9.0 published on Wednesday, Apr 6, 2022 by Pulumi

AppSecSlowPostProtection

Scopes: Security policy

Enables or disables slow POST protection for a security configuration and security policy. Slow POST protections help defend a site against attacks that try to tie up the site by using extremely slow requests and responses.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/protections

Output Options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • output_text. Tabular report showing the current protection settings.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        var protection = new Akamai.AppSecSlowPostProtection("protection", new Akamai.AppSecSlowPostProtectionArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = "gms1_134637",
            Enabled = true,
        });
    }

}
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 {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecSlowPostProtection(ctx, "protection", &akamai.AppSecSlowPostProtectionArgs{
			ConfigId:         pulumi.Int(configuration.ConfigId),
			SecurityPolicyId: pulumi.String("gms1_134637"),
			Enabled:          pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
protection = akamai.AppSecSlowPostProtection("protection",
    config_id=configuration.config_id,
    security_policy_id="gms1_134637",
    enabled=True)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const protection = new akamai.AppSecSlowPostProtection("protection", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: "gms1_134637",
    enabled: true,
});

Coming soon!

Create a AppSecSlowPostProtection Resource

new AppSecSlowPostProtection(name: string, args: AppSecSlowPostProtectionArgs, opts?: CustomResourceOptions);
@overload
def AppSecSlowPostProtection(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             config_id: Optional[int] = None,
                             enabled: Optional[bool] = None,
                             security_policy_id: Optional[str] = None)
@overload
def AppSecSlowPostProtection(resource_name: str,
                             args: AppSecSlowPostProtectionArgs,
                             opts: Optional[ResourceOptions] = None)
func NewAppSecSlowPostProtection(ctx *Context, name string, args AppSecSlowPostProtectionArgs, opts ...ResourceOption) (*AppSecSlowPostProtection, error)
public AppSecSlowPostProtection(string name, AppSecSlowPostProtectionArgs args, CustomResourceOptions? opts = null)
public AppSecSlowPostProtection(String name, AppSecSlowPostProtectionArgs args)
public AppSecSlowPostProtection(String name, AppSecSlowPostProtectionArgs args, CustomResourceOptions options)
type: akamai:AppSecSlowPostProtection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AppSecSlowPostProtectionArgs
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 AppSecSlowPostProtectionArgs
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 AppSecSlowPostProtectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AppSecSlowPostProtectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AppSecSlowPostProtectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AppSecSlowPostProtection 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 AppSecSlowPostProtection resource accepts the following input properties:

ConfigId int

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

Enabled bool

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

SecurityPolicyId string

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

ConfigId int

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

Enabled bool

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

SecurityPolicyId string

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

configId Integer

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled Boolean

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

securityPolicyId String

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

configId number

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled boolean

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

securityPolicyId string

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

config_id int

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled bool

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

security_policy_id str

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

configId Number

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled Boolean

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

securityPolicyId String

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

OutputText string

Text Export representation

Id string

The provider-assigned unique ID for this managed resource.

OutputText string

Text Export representation

id String

The provider-assigned unique ID for this managed resource.

outputText String

Text Export representation

id string

The provider-assigned unique ID for this managed resource.

outputText string

Text Export representation

id str

The provider-assigned unique ID for this managed resource.

output_text str

Text Export representation

id String

The provider-assigned unique ID for this managed resource.

outputText String

Text Export representation

Look up an Existing AppSecSlowPostProtection Resource

Get an existing AppSecSlowPostProtection 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?: AppSecSlowPostProtectionState, opts?: CustomResourceOptions): AppSecSlowPostProtection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        enabled: Optional[bool] = None,
        output_text: Optional[str] = None,
        security_policy_id: Optional[str] = None) -> AppSecSlowPostProtection
func GetAppSecSlowPostProtection(ctx *Context, name string, id IDInput, state *AppSecSlowPostProtectionState, opts ...ResourceOption) (*AppSecSlowPostProtection, error)
public static AppSecSlowPostProtection Get(string name, Input<string> id, AppSecSlowPostProtectionState? state, CustomResourceOptions? opts = null)
public static AppSecSlowPostProtection get(String name, Output<String> id, AppSecSlowPostProtectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

Enabled bool

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

OutputText string

Text Export representation

SecurityPolicyId string

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

ConfigId int

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

Enabled bool

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

OutputText string

Text Export representation

SecurityPolicyId string

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

configId Integer

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled Boolean

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

outputText String

Text Export representation

securityPolicyId String

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

configId number

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled boolean

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

outputText string

Text Export representation

securityPolicyId string

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

config_id int

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled bool

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

output_text str

Text Export representation

security_policy_id str

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

configId Number

. Unique identifier of the security configuration associated with the slow POST protection settings being modified.

enabled Boolean

. Set to true to enable slow POST protection; set to false to disable slow POST protection.

outputText String

Text Export representation

securityPolicyId String

. Unique identifier of the security policy associated with the slow POST protection settings being modified.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.