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,
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.EdgeServicesWafStage("main",
pipeline_id=main_scaleway_edge_services_pipeline["id"],
mode="enable",
paranoia_level=3)
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
})
}
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,
});
});
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());
}
}
resources:
main:
type: scaleway:EdgeServicesWafStage
properties:
pipelineId: ${mainScalewayEdgeServicesPipeline.id}
mode: enable
paranoiaLevel: 3
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 string
- The unique name of the resource.
- args EdgeServicesWafStageArgs
- 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 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 string
- The unique name of the resource.
- args EdgeServicesWafStageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EdgeServicesWafStageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var edgeServicesWafStageResource = new EdgeServicesWafStage("edgeServicesWafStageResource", EdgeServicesWafStageArgs.builder()
.paranoiaLevel(0)
.pipelineId("string")
.backendStageId("string")
.mode("string")
.projectId("string")
.build());
edge_services_waf_stage_resource = scaleway.EdgeServicesWafStage("edgeServicesWafStageResource",
paranoia_level=0,
pipeline_id="string",
backend_stage_id="string",
mode="string",
project_id="string")
const edgeServicesWafStageResource = new scaleway.EdgeServicesWafStage("edgeServicesWafStageResource", {
paranoiaLevel: 0,
pipelineId: "string",
backendStageId: "string",
mode: "string",
projectId: "string",
});
type: scaleway:EdgeServicesWafStage
properties:
backendStageId: string
mode: string
paranoiaLevel: 0
pipelineId: string
projectId: string
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:
- 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 string - The ID of the pipeline.
- Backend
Stage stringId - 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
). - Project
Id string project_id
) The ID of the project the WAF stage is associated with.
- 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 string - The ID of the pipeline.
- Backend
Stage stringId - 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
). - Project
Id string project_id
) The ID of the project the WAF stage is associated with.
- paranoia
Level 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. - pipeline
Id String - The ID of the pipeline.
- backend
Stage StringId - 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
). - project
Id String project_id
) The ID of the project the WAF stage is associated with.
- paranoia
Level 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. - pipeline
Id string - The ID of the pipeline.
- backend
Stage stringId - 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
). - project
Id string project_id
) The ID of the project the WAF stage is associated with.
- 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.
- backend_
stage_ strid - 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 str project_id
) The ID of the project the WAF stage is associated with.
- paranoia
Level 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. - pipeline
Id String - The ID of the pipeline.
- backend
Stage StringId - 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
). - project
Id 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:
- 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.
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
- 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.
- Backend
Stage stringId - The ID of the backend stage to forward requests to after the WAF stage.
- Created
At string - The date and time of the creation of the WAF stage.
- Mode string
- 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 string - The ID of the pipeline.
- Project
Id string project_id
) The ID of the project the WAF stage is associated with.- Updated
At string - The date and time of the last update of the WAF stage.
- Backend
Stage stringId - The ID of the backend stage to forward requests to after the WAF stage.
- Created
At string - The date and time of the creation of the WAF stage.
- Mode string
- 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 string - The ID of the pipeline.
- Project
Id string project_id
) The ID of the project the WAF stage is associated with.- Updated
At string - The date and time of the last update of the WAF stage.
- backend
Stage StringId - The ID of the backend stage to forward requests to after the WAF stage.
- created
At String - The date and time of the creation of the WAF stage.
- mode String
- The mode defining WAF behavior (
disable
/log_only
/enable
). - paranoia
Level 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. - pipeline
Id String - The ID of the pipeline.
- project
Id String project_id
) The ID of the project the WAF stage is associated with.- updated
At String - The date and time of the last update of the WAF stage.
- backend
Stage stringId - The ID of the backend stage to forward requests to after the WAF stage.
- created
At string - The date and time of the creation of the WAF stage.
- mode string
- The mode defining WAF behavior (
disable
/log_only
/enable
). - paranoia
Level 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. - pipeline
Id string - The ID of the pipeline.
- project
Id string project_id
) The ID of the project the WAF stage is associated with.- updated
At string - The date and time of the last update of the WAF stage.
- backend_
stage_ strid - 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 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.
- backend
Stage StringId - The ID of the backend stage to forward requests to after the WAF stage.
- created
At String - The date and time of the creation of the WAF stage.
- mode String
- The mode defining WAF behavior (
disable
/log_only
/enable
). - paranoia
Level 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. - pipeline
Id String - The ID of the pipeline.
- project
Id String project_id
) The ID of the project the WAF stage is associated with.- updated
At 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
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.