1. Packages
  2. Scaleway
  3. API Docs
  4. EdgeServicesWafStage
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.EdgeServicesWafStage

Explore with Pulumi AI

Creates and manages Scaleway Edge Services WAF Stages.

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.EdgeServicesWafStage("main", {
    pipelineId: mainScalewayEdgeServicesPipeline.id,
    mode: "enable",
    paranoiaLevel: 3,
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.EdgeServicesWafStage("main",
    pipeline_id=main_scaleway_edge_services_pipeline["id"],
    mode="enable",
    paranoia_level=3)
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.NewEdgeServicesWafStage(ctx, "main", &scaleway.EdgeServicesWafStageArgs{
			PipelineId:    pulumi.Any(mainScalewayEdgeServicesPipeline.Id),
			Mode:          pulumi.String("enable"),
			ParanoiaLevel: pulumi.Int(3),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.EdgeServicesWafStage("main", new()
    {
        PipelineId = mainScalewayEdgeServicesPipeline.Id,
        Mode = "enable",
        ParanoiaLevel = 3,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.EdgeServicesWafStage;
import com.pulumi.scaleway.EdgeServicesWafStageArgs;
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 main = new EdgeServicesWafStage("main", EdgeServicesWafStageArgs.builder()
            .pipelineId(mainScalewayEdgeServicesPipeline.id())
            .mode("enable")
            .paranoiaLevel(3)
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:EdgeServicesWafStage
    properties:
      pipelineId: ${mainScalewayEdgeServicesPipeline.id}
      mode: enable
      paranoiaLevel: 3
Copy

Create EdgeServicesWafStage Resource

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

Constructor syntax

new EdgeServicesWafStage(name: string, args: EdgeServicesWafStageArgs, opts?: CustomResourceOptions);
@overload
def EdgeServicesWafStage(resource_name: str,
                         args: EdgeServicesWafStageArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def EdgeServicesWafStage(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         paranoia_level: Optional[int] = None,
                         pipeline_id: Optional[str] = None,
                         backend_stage_id: Optional[str] = None,
                         mode: Optional[str] = None,
                         project_id: Optional[str] = None)
func NewEdgeServicesWafStage(ctx *Context, name string, args EdgeServicesWafStageArgs, opts ...ResourceOption) (*EdgeServicesWafStage, error)
public EdgeServicesWafStage(string name, EdgeServicesWafStageArgs args, CustomResourceOptions? opts = null)
public EdgeServicesWafStage(String name, EdgeServicesWafStageArgs args)
public EdgeServicesWafStage(String name, EdgeServicesWafStageArgs args, CustomResourceOptions options)
type: scaleway:EdgeServicesWafStage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EdgeServicesWafStageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EdgeServicesWafStageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EdgeServicesWafStageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EdgeServicesWafStageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EdgeServicesWafStageArgs
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 edgeServicesWafStageResource = new Scaleway.EdgeServicesWafStage("edgeServicesWafStageResource", new()
{
    ParanoiaLevel = 0,
    PipelineId = "string",
    BackendStageId = "string",
    Mode = "string",
    ProjectId = "string",
});
Copy
example, err := scaleway.NewEdgeServicesWafStage(ctx, "edgeServicesWafStageResource", &scaleway.EdgeServicesWafStageArgs{
	ParanoiaLevel:  pulumi.Int(0),
	PipelineId:     pulumi.String("string"),
	BackendStageId: pulumi.String("string"),
	Mode:           pulumi.String("string"),
	ProjectId:      pulumi.String("string"),
})
Copy
var edgeServicesWafStageResource = new EdgeServicesWafStage("edgeServicesWafStageResource", EdgeServicesWafStageArgs.builder()
    .paranoiaLevel(0)
    .pipelineId("string")
    .backendStageId("string")
    .mode("string")
    .projectId("string")
    .build());
Copy
edge_services_waf_stage_resource = scaleway.EdgeServicesWafStage("edgeServicesWafStageResource",
    paranoia_level=0,
    pipeline_id="string",
    backend_stage_id="string",
    mode="string",
    project_id="string")
Copy
const edgeServicesWafStageResource = new scaleway.EdgeServicesWafStage("edgeServicesWafStageResource", {
    paranoiaLevel: 0,
    pipelineId: "string",
    backendStageId: "string",
    mode: "string",
    projectId: "string",
});
Copy
type: scaleway:EdgeServicesWafStage
properties:
    backendStageId: string
    mode: string
    paranoiaLevel: 0
    pipelineId: string
    projectId: string
Copy

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

ParanoiaLevel This property is required. int
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
PipelineId This property is required. string
The ID of the pipeline.
BackendStageId string
The ID of the backend stage to forward requests to after the WAF stage.
Mode string
The mode defining WAF behavior (disable/log_only/enable).
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the WAF stage is associated with.
ParanoiaLevel This property is required. int
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
PipelineId This property is required. string
The ID of the pipeline.
BackendStageId string
The ID of the backend stage to forward requests to after the WAF stage.
Mode string
The mode defining WAF behavior (disable/log_only/enable).
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the WAF stage is associated with.
paranoiaLevel This property is required. Integer
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipelineId This property is required. String
The ID of the pipeline.
backendStageId String
The ID of the backend stage to forward requests to after the WAF stage.
mode String
The mode defining WAF behavior (disable/log_only/enable).
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the WAF stage is associated with.
paranoiaLevel This property is required. number
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipelineId This property is required. string
The ID of the pipeline.
backendStageId string
The ID of the backend stage to forward requests to after the WAF stage.
mode string
The mode defining WAF behavior (disable/log_only/enable).
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the WAF stage is associated with.
paranoia_level This property is required. int
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipeline_id This property is required. str
The ID of the pipeline.
backend_stage_id str
The ID of the backend stage to forward requests to after the WAF stage.
mode str
The mode defining WAF behavior (disable/log_only/enable).
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the WAF stage is associated with.
paranoiaLevel This property is required. Number
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipelineId This property is required. String
The ID of the pipeline.
backendStageId String
The ID of the backend stage to forward requests to after the WAF stage.
mode String
The mode defining WAF behavior (disable/log_only/enable).
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the WAF stage is associated with.

Outputs

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

CreatedAt string
The date and time of the creation of the WAF stage.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
The date and time of the last update of the WAF stage.
CreatedAt string
The date and time of the creation of the WAF stage.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
The date and time of the last update of the WAF stage.
createdAt String
The date and time of the creation of the WAF stage.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
The date and time of the last update of the WAF stage.
createdAt string
The date and time of the creation of the WAF stage.
id string
The provider-assigned unique ID for this managed resource.
updatedAt string
The date and time of the last update of the WAF stage.
created_at str
The date and time of the creation of the WAF stage.
id str
The provider-assigned unique ID for this managed resource.
updated_at str
The date and time of the last update of the WAF stage.
createdAt String
The date and time of the creation of the WAF stage.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
The date and time of the last update of the WAF stage.

Look up Existing EdgeServicesWafStage Resource

Get an existing EdgeServicesWafStage 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?: EdgeServicesWafStageState, opts?: CustomResourceOptions): EdgeServicesWafStage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend_stage_id: Optional[str] = None,
        created_at: Optional[str] = None,
        mode: Optional[str] = None,
        paranoia_level: Optional[int] = None,
        pipeline_id: Optional[str] = None,
        project_id: Optional[str] = None,
        updated_at: Optional[str] = None) -> EdgeServicesWafStage
func GetEdgeServicesWafStage(ctx *Context, name string, id IDInput, state *EdgeServicesWafStageState, opts ...ResourceOption) (*EdgeServicesWafStage, error)
public static EdgeServicesWafStage Get(string name, Input<string> id, EdgeServicesWafStageState? state, CustomResourceOptions? opts = null)
public static EdgeServicesWafStage get(String name, Output<String> id, EdgeServicesWafStageState state, CustomResourceOptions options)
resources:  _:    type: scaleway:EdgeServicesWafStage    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
BackendStageId string
The ID of the backend stage to forward requests to after the WAF stage.
CreatedAt string
The date and time of the creation of the WAF stage.
Mode string
The mode defining WAF behavior (disable/log_only/enable).
ParanoiaLevel int
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
PipelineId string
The ID of the pipeline.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the WAF stage is associated with.
UpdatedAt string
The date and time of the last update of the WAF stage.
BackendStageId string
The ID of the backend stage to forward requests to after the WAF stage.
CreatedAt string
The date and time of the creation of the WAF stage.
Mode string
The mode defining WAF behavior (disable/log_only/enable).
ParanoiaLevel int
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
PipelineId string
The ID of the pipeline.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the WAF stage is associated with.
UpdatedAt string
The date and time of the last update of the WAF stage.
backendStageId String
The ID of the backend stage to forward requests to after the WAF stage.
createdAt String
The date and time of the creation of the WAF stage.
mode String
The mode defining WAF behavior (disable/log_only/enable).
paranoiaLevel Integer
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipelineId String
The ID of the pipeline.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the WAF stage is associated with.
updatedAt String
The date and time of the last update of the WAF stage.
backendStageId string
The ID of the backend stage to forward requests to after the WAF stage.
createdAt string
The date and time of the creation of the WAF stage.
mode string
The mode defining WAF behavior (disable/log_only/enable).
paranoiaLevel number
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipelineId string
The ID of the pipeline.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the WAF stage is associated with.
updatedAt string
The date and time of the last update of the WAF stage.
backend_stage_id str
The ID of the backend stage to forward requests to after the WAF stage.
created_at str
The date and time of the creation of the WAF stage.
mode str
The mode defining WAF behavior (disable/log_only/enable).
paranoia_level int
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipeline_id str
The ID of the pipeline.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the WAF stage is associated with.
updated_at str
The date and time of the last update of the WAF stage.
backendStageId String
The ID of the backend stage to forward requests to after the WAF stage.
createdAt String
The date and time of the creation of the WAF stage.
mode String
The mode defining WAF behavior (disable/log_only/enable).
paranoiaLevel Number
The sensitivity level (1,2,3,4) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
pipelineId String
The ID of the pipeline.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the WAF stage is associated with.
updatedAt String
The date and time of the last update of the WAF stage.

Import

WAF stages can be imported using the {id}, e.g.

bash

$ pulumi import scaleway:index/edgeServicesWafStage:EdgeServicesWafStage basic 11111111-1111-1111-1111-111111111111
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.