1. Packages
  2. Fastly Provider
  3. API Docs
  4. NgwafAccountSignal
Fastly v11.0.0 published on Thursday, Sep 4, 2025 by Pulumi

fastly.NgwafAccountSignal

Explore with Pulumi AI

fastly logo
Fastly v11.0.0 published on Thursday, Sep 4, 2025 by Pulumi

    Provides a Fastly Next-Gen WAF Account Signal.
    Account-level signals apply across one or more workspaces and are useful for defining shared or global WAF logic.

    Example Usage

    Basic usage:

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const example = new fastly.NgwafAccountSignal("example", {
        appliesTos: ["*"],
        description: "example",
        name: "Test Name",
    });
    
    import pulumi
    import pulumi_fastly as fastly
    
    example = fastly.NgwafAccountSignal("example",
        applies_tos=["*"],
        description="example",
        name="Test Name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-fastly/sdk/v11/go/fastly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fastly.NewNgwafAccountSignal(ctx, "example", &fastly.NgwafAccountSignalArgs{
    			AppliesTos: pulumi.StringArray{
    				pulumi.String("*"),
    			},
    			Description: pulumi.String("example"),
    			Name:        pulumi.String("Test Name"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Fastly.NgwafAccountSignal("example", new()
        {
            AppliesTos = new[]
            {
                "*",
            },
            Description = "example",
            Name = "Test Name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fastly.NgwafAccountSignal;
    import com.pulumi.fastly.NgwafAccountSignalArgs;
    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 example = new NgwafAccountSignal("example", NgwafAccountSignalArgs.builder()
                .appliesTos("*")
                .description("example")
                .name("Test Name")
                .build());
    
        }
    }
    
    resources:
      example:
        type: fastly:NgwafAccountSignal
        properties:
          appliesTos:
            - '*'
          description: example
          name: Test Name
    

    Create NgwafAccountSignal Resource

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

    Constructor syntax

    new NgwafAccountSignal(name: string, args: NgwafAccountSignalArgs, opts?: CustomResourceOptions);
    @overload
    def NgwafAccountSignal(resource_name: str,
                           args: NgwafAccountSignalArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def NgwafAccountSignal(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           applies_tos: Optional[Sequence[str]] = None,
                           description: Optional[str] = None,
                           name: Optional[str] = None)
    func NewNgwafAccountSignal(ctx *Context, name string, args NgwafAccountSignalArgs, opts ...ResourceOption) (*NgwafAccountSignal, error)
    public NgwafAccountSignal(string name, NgwafAccountSignalArgs args, CustomResourceOptions? opts = null)
    public NgwafAccountSignal(String name, NgwafAccountSignalArgs args)
    public NgwafAccountSignal(String name, NgwafAccountSignalArgs args, CustomResourceOptions options)
    
    type: fastly:NgwafAccountSignal
    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 NgwafAccountSignalArgs
    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 NgwafAccountSignalArgs
    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 NgwafAccountSignalArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NgwafAccountSignalArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NgwafAccountSignalArgs
    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 ngwafAccountSignalResource = new Fastly.NgwafAccountSignal("ngwafAccountSignalResource", new()
    {
        AppliesTos = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
    });
    
    example, err := fastly.NewNgwafAccountSignal(ctx, "ngwafAccountSignalResource", &fastly.NgwafAccountSignalArgs{
    	AppliesTos: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var ngwafAccountSignalResource = new NgwafAccountSignal("ngwafAccountSignalResource", NgwafAccountSignalArgs.builder()
        .appliesTos("string")
        .description("string")
        .name("string")
        .build());
    
    ngwaf_account_signal_resource = fastly.NgwafAccountSignal("ngwafAccountSignalResource",
        applies_tos=["string"],
        description="string",
        name="string")
    
    const ngwafAccountSignalResource = new fastly.NgwafAccountSignal("ngwafAccountSignalResource", {
        appliesTos: ["string"],
        description: "string",
        name: "string",
    });
    
    type: fastly:NgwafAccountSignal
    properties:
        appliesTos:
            - string
        description: string
        name: string
    

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

    AppliesTos List<string>
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    Description string
    The description of the signal.
    Name string
    The name of the signal. Special characters and periods are not accepted.
    AppliesTos []string
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    Description string
    The description of the signal.
    Name string
    The name of the signal. Special characters and periods are not accepted.
    appliesTos List<String>
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description String
    The description of the signal.
    name String
    The name of the signal. Special characters and periods are not accepted.
    appliesTos string[]
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description string
    The description of the signal.
    name string
    The name of the signal. Special characters and periods are not accepted.
    applies_tos Sequence[str]
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description str
    The description of the signal.
    name str
    The name of the signal. Special characters and periods are not accepted.
    appliesTos List<String>
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description String
    The description of the signal.
    name String
    The name of the signal. Special characters and periods are not accepted.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ReferenceId string
    The generated reference ID of the signal.
    Id string
    The provider-assigned unique ID for this managed resource.
    ReferenceId string
    The generated reference ID of the signal.
    id String
    The provider-assigned unique ID for this managed resource.
    referenceId String
    The generated reference ID of the signal.
    id string
    The provider-assigned unique ID for this managed resource.
    referenceId string
    The generated reference ID of the signal.
    id str
    The provider-assigned unique ID for this managed resource.
    reference_id str
    The generated reference ID of the signal.
    id String
    The provider-assigned unique ID for this managed resource.
    referenceId String
    The generated reference ID of the signal.

    Look up Existing NgwafAccountSignal Resource

    Get an existing NgwafAccountSignal 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?: NgwafAccountSignalState, opts?: CustomResourceOptions): NgwafAccountSignal
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            applies_tos: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            reference_id: Optional[str] = None) -> NgwafAccountSignal
    func GetNgwafAccountSignal(ctx *Context, name string, id IDInput, state *NgwafAccountSignalState, opts ...ResourceOption) (*NgwafAccountSignal, error)
    public static NgwafAccountSignal Get(string name, Input<string> id, NgwafAccountSignalState? state, CustomResourceOptions? opts = null)
    public static NgwafAccountSignal get(String name, Output<String> id, NgwafAccountSignalState state, CustomResourceOptions options)
    resources:  _:    type: fastly:NgwafAccountSignal    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.
    The following state arguments are supported:
    AppliesTos List<string>
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    Description string
    The description of the signal.
    Name string
    The name of the signal. Special characters and periods are not accepted.
    ReferenceId string
    The generated reference ID of the signal.
    AppliesTos []string
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    Description string
    The description of the signal.
    Name string
    The name of the signal. Special characters and periods are not accepted.
    ReferenceId string
    The generated reference ID of the signal.
    appliesTos List<String>
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description String
    The description of the signal.
    name String
    The name of the signal. Special characters and periods are not accepted.
    referenceId String
    The generated reference ID of the signal.
    appliesTos string[]
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description string
    The description of the signal.
    name string
    The name of the signal. Special characters and periods are not accepted.
    referenceId string
    The generated reference ID of the signal.
    applies_tos Sequence[str]
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description str
    The description of the signal.
    name str
    The name of the signal. Special characters and periods are not accepted.
    reference_id str
    The generated reference ID of the signal.
    appliesTos List<String>
    The list of workspace IDs this signal applies to, or the wildcard * if it applies to all workspaces.
    description String
    The description of the signal.
    name String
    The name of the signal. Special characters and periods are not accepted.
    referenceId String
    The generated reference ID of the signal.

    Import

    Fastly Next-Gen WAF account signals can be imported using just the signal ID, e.g.:

    $ pulumi import fastly:index/ngwafAccountSignal:NgwafAccountSignal demo <signalID>
    

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

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v11.0.0 published on Thursday, Sep 4, 2025 by Pulumi