1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. AlbWafConfiguration
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud

    ALB WAF Custom Rule Group resource schema. Uses the defaultRegion specified in the provider configuration as a fallback in case no region is defined on resource level.

    This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

    Example Usage

    resource "stackit_alb_waf_managed_rule_set" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "example-managed-rule-set"
      type       = "TYPE_OWASP_CRS"
    }
    
    resource "stackit_alb_waf_custom_rule_group" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "example-custom-rule-group"
      rules = [
        {
          behavior = {
            action = "ACTION_DENY"
          }
          conditions = [
            {
              operator = {
                type = "OPERATOR_VALIDATE_UTF8_ENCODING"
              }
              variable = {
                type = "VARIABLE_REQUEST_HEADERS"
              }
            }
          ]
        }
      ]
    }
    
    resource "stackit_alb_waf_configuration" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "example-waf-configuration"
    
      managed_rule_set_name  = stackit_alb_waf_managed_rule_set.example.name
      custom_rule_group_name = stackit_alb_waf_custom_rule_group.example.name
    
      labels = {
        "key" = "value"
      }
    }
    

    Create AlbWafConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlbWafConfiguration(name: string, args: AlbWafConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def AlbWafConfiguration(resource_name: str,
                            args: AlbWafConfigurationArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlbWafConfiguration(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            project_id: Optional[str] = None,
                            custom_rule_group_name: Optional[str] = None,
                            labels: Optional[Mapping[str, str]] = None,
                            managed_rule_set_name: Optional[str] = None,
                            name: Optional[str] = None,
                            region: Optional[str] = None)
    func NewAlbWafConfiguration(ctx *Context, name string, args AlbWafConfigurationArgs, opts ...ResourceOption) (*AlbWafConfiguration, error)
    public AlbWafConfiguration(string name, AlbWafConfigurationArgs args, CustomResourceOptions? opts = null)
    public AlbWafConfiguration(String name, AlbWafConfigurationArgs args)
    public AlbWafConfiguration(String name, AlbWafConfigurationArgs args, CustomResourceOptions options)
    
    type: stackit:AlbWafConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "stackit_alb_waf_configuration" "name" {
        # resource properties
    }

    Parameters

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

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var albWafConfigurationResource = new Stackit.AlbWafConfiguration("albWafConfigurationResource", new()
    {
        ProjectId = "string",
        CustomRuleGroupName = "string",
        Labels = 
        {
            { "string", "string" },
        },
        ManagedRuleSetName = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := stackit.NewAlbWafConfiguration(ctx, "albWafConfigurationResource", &stackit.AlbWafConfigurationArgs{
    	ProjectId:           pulumi.String("string"),
    	CustomRuleGroupName: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ManagedRuleSetName: pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Region:             pulumi.String("string"),
    })
    
    resource "stackit_alb_waf_configuration" "albWafConfigurationResource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id             = "string"
      custom_rule_group_name = "string"
      labels = {
        "string" = "string"
      }
      managed_rule_set_name = "string"
      name                  = "string"
      region                = "string"
    }
    
    var albWafConfigurationResource = new AlbWafConfiguration("albWafConfigurationResource", AlbWafConfigurationArgs.builder()
        .projectId("string")
        .customRuleGroupName("string")
        .labels(Map.of("string", "string"))
        .managedRuleSetName("string")
        .name("string")
        .region("string")
        .build());
    
    alb_waf_configuration_resource = stackit.AlbWafConfiguration("albWafConfigurationResource",
        project_id="string",
        custom_rule_group_name="string",
        labels={
            "string": "string",
        },
        managed_rule_set_name="string",
        name="string",
        region="string")
    
    const albWafConfigurationResource = new stackit.AlbWafConfiguration("albWafConfigurationResource", {
        projectId: "string",
        customRuleGroupName: "string",
        labels: {
            string: "string",
        },
        managedRuleSetName: "string",
        name: "string",
        region: "string",
    });
    
    type: stackit:AlbWafConfiguration
    properties:
        customRuleGroupName: string
        labels:
            string: string
        managedRuleSetName: string
        name: string
        projectId: string
        region: string
    

    AlbWafConfiguration Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AlbWafConfiguration resource accepts the following input properties:

    ProjectId string
    STACKIT project ID to which the WAF Configuration is associated.
    CustomRuleGroupName string
    Name of the custom rule group for this WAF Configuration.
    Labels Dictionary<string, string>
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    ManagedRuleSetName string
    Name of the managed rule set configuration for this WAF Configuration.
    Name string
    The name of the WAF Configuration.
    Region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    ProjectId string
    STACKIT project ID to which the WAF Configuration is associated.
    CustomRuleGroupName string
    Name of the custom rule group for this WAF Configuration.
    Labels map[string]string
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    ManagedRuleSetName string
    Name of the managed rule set configuration for this WAF Configuration.
    Name string
    The name of the WAF Configuration.
    Region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    project_id string
    STACKIT project ID to which the WAF Configuration is associated.
    custom_rule_group_name string
    Name of the custom rule group for this WAF Configuration.
    labels map(string)
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managed_rule_set_name string
    Name of the managed rule set configuration for this WAF Configuration.
    name string
    The name of the WAF Configuration.
    region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the WAF Configuration is associated.
    customRuleGroupName String
    Name of the custom rule group for this WAF Configuration.
    labels Map<String,String>
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managedRuleSetName String
    Name of the managed rule set configuration for this WAF Configuration.
    name String
    The name of the WAF Configuration.
    region String
    The resource region (e.g. eu01). If not defined, the provider region is used.
    projectId string
    STACKIT project ID to which the WAF Configuration is associated.
    customRuleGroupName string
    Name of the custom rule group for this WAF Configuration.
    labels {[key: string]: string}
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managedRuleSetName string
    Name of the managed rule set configuration for this WAF Configuration.
    name string
    The name of the WAF Configuration.
    region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    project_id str
    STACKIT project ID to which the WAF Configuration is associated.
    custom_rule_group_name str
    Name of the custom rule group for this WAF Configuration.
    labels Mapping[str, str]
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managed_rule_set_name str
    Name of the managed rule set configuration for this WAF Configuration.
    name str
    The name of the WAF Configuration.
    region str
    The resource region (e.g. eu01). If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the WAF Configuration is associated.
    customRuleGroupName String
    Name of the custom rule group for this WAF Configuration.
    labels Map<String>
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managedRuleSetName String
    Name of the managed rule set configuration for this WAF Configuration.
    name String
    The name of the WAF Configuration.
    region String
    The resource region (e.g. eu01). If not defined, the provider region is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlbWafConfiguration 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 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.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AlbWafConfiguration Resource

    Get an existing AlbWafConfiguration 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?: AlbWafConfigurationState, opts?: CustomResourceOptions): AlbWafConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_rule_group_name: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            managed_rule_set_name: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None) -> AlbWafConfiguration
    func GetAlbWafConfiguration(ctx *Context, name string, id IDInput, state *AlbWafConfigurationState, opts ...ResourceOption) (*AlbWafConfiguration, error)
    public static AlbWafConfiguration Get(string name, Input<string> id, AlbWafConfigurationState? state, CustomResourceOptions? opts = null)
    public static AlbWafConfiguration get(String name, Output<String> id, AlbWafConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: stackit:AlbWafConfiguration    get:      id: ${id}
    import {
      to = stackit_alb_waf_configuration.example
      id = "${id}"
    }
    
    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:
    CustomRuleGroupName string
    Name of the custom rule group for this WAF Configuration.
    Labels Dictionary<string, string>
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    ManagedRuleSetName string
    Name of the managed rule set configuration for this WAF Configuration.
    Name string
    The name of the WAF Configuration.
    ProjectId string
    STACKIT project ID to which the WAF Configuration is associated.
    Region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    CustomRuleGroupName string
    Name of the custom rule group for this WAF Configuration.
    Labels map[string]string
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    ManagedRuleSetName string
    Name of the managed rule set configuration for this WAF Configuration.
    Name string
    The name of the WAF Configuration.
    ProjectId string
    STACKIT project ID to which the WAF Configuration is associated.
    Region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    custom_rule_group_name string
    Name of the custom rule group for this WAF Configuration.
    labels map(string)
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managed_rule_set_name string
    Name of the managed rule set configuration for this WAF Configuration.
    name string
    The name of the WAF Configuration.
    project_id string
    STACKIT project ID to which the WAF Configuration is associated.
    region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    customRuleGroupName String
    Name of the custom rule group for this WAF Configuration.
    labels Map<String,String>
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managedRuleSetName String
    Name of the managed rule set configuration for this WAF Configuration.
    name String
    The name of the WAF Configuration.
    projectId String
    STACKIT project ID to which the WAF Configuration is associated.
    region String
    The resource region (e.g. eu01). If not defined, the provider region is used.
    customRuleGroupName string
    Name of the custom rule group for this WAF Configuration.
    labels {[key: string]: string}
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managedRuleSetName string
    Name of the managed rule set configuration for this WAF Configuration.
    name string
    The name of the WAF Configuration.
    projectId string
    STACKIT project ID to which the WAF Configuration is associated.
    region string
    The resource region (e.g. eu01). If not defined, the provider region is used.
    custom_rule_group_name str
    Name of the custom rule group for this WAF Configuration.
    labels Mapping[str, str]
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managed_rule_set_name str
    Name of the managed rule set configuration for this WAF Configuration.
    name str
    The name of the WAF Configuration.
    project_id str
    STACKIT project ID to which the WAF Configuration is associated.
    region str
    The resource region (e.g. eu01). If not defined, the provider region is used.
    customRuleGroupName String
    Name of the custom rule group for this WAF Configuration.
    labels Map<String>
    User-defined metadata as key-value pairs. Should not exceed 64 entries.
    managedRuleSetName String
    Name of the managed rule set configuration for this WAF Configuration.
    name String
    The name of the WAF Configuration.
    projectId String
    STACKIT project ID to which the WAF Configuration is associated.
    region String
    The resource region (e.g. eu01). If not defined, the provider region is used.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.7
    published on Monday, Aug 17, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial