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

fastly.NgwafAlertSlackIntegration

Explore with Pulumi AI

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

    Provides Fastly Next-Gen WAF Alert Slack integrations, which provide a connection to Slack.

    Example Usage

    Basic usage:

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const demoSlackAlert = new fastly.NgwafAlertSlackIntegration("demo_slack_alert", {
        description: "Some Description",
        webhook: "https://example.com/webhooks/my-service",
        workspaceId: demo.id,
    });
    
    import pulumi
    import pulumi_fastly as fastly
    
    demo_slack_alert = fastly.NgwafAlertSlackIntegration("demo_slack_alert",
        description="Some Description",
        webhook="https://example.com/webhooks/my-service",
        workspace_id=demo["id"])
    
    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.NewNgwafAlertSlackIntegration(ctx, "demo_slack_alert", &fastly.NgwafAlertSlackIntegrationArgs{
    			Description: pulumi.String("Some Description"),
    			Webhook:     pulumi.String("https://example.com/webhooks/my-service"),
    			WorkspaceId: pulumi.Any(demo.Id),
    		})
    		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 demoSlackAlert = new Fastly.NgwafAlertSlackIntegration("demo_slack_alert", new()
        {
            Description = "Some Description",
            Webhook = "https://example.com/webhooks/my-service",
            WorkspaceId = demo.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fastly.NgwafAlertSlackIntegration;
    import com.pulumi.fastly.NgwafAlertSlackIntegrationArgs;
    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 demoSlackAlert = new NgwafAlertSlackIntegration("demoSlackAlert", NgwafAlertSlackIntegrationArgs.builder()
                .description("Some Description")
                .webhook("https://example.com/webhooks/my-service")
                .workspaceId(demo.id())
                .build());
    
        }
    }
    
    resources:
      demoSlackAlert:
        type: fastly:NgwafAlertSlackIntegration
        name: demo_slack_alert
        properties:
          description: Some Description
          webhook: https://example.com/webhooks/my-service
          workspaceId: ${demo.id}
    

    Create NgwafAlertSlackIntegration Resource

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

    Constructor syntax

    new NgwafAlertSlackIntegration(name: string, args: NgwafAlertSlackIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def NgwafAlertSlackIntegration(resource_name: str,
                                   args: NgwafAlertSlackIntegrationArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def NgwafAlertSlackIntegration(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   webhook: Optional[str] = None,
                                   workspace_id: Optional[str] = None,
                                   description: Optional[str] = None)
    func NewNgwafAlertSlackIntegration(ctx *Context, name string, args NgwafAlertSlackIntegrationArgs, opts ...ResourceOption) (*NgwafAlertSlackIntegration, error)
    public NgwafAlertSlackIntegration(string name, NgwafAlertSlackIntegrationArgs args, CustomResourceOptions? opts = null)
    public NgwafAlertSlackIntegration(String name, NgwafAlertSlackIntegrationArgs args)
    public NgwafAlertSlackIntegration(String name, NgwafAlertSlackIntegrationArgs args, CustomResourceOptions options)
    
    type: fastly:NgwafAlertSlackIntegration
    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 NgwafAlertSlackIntegrationArgs
    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 NgwafAlertSlackIntegrationArgs
    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 NgwafAlertSlackIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NgwafAlertSlackIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NgwafAlertSlackIntegrationArgs
    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 ngwafAlertSlackIntegrationResource = new Fastly.NgwafAlertSlackIntegration("ngwafAlertSlackIntegrationResource", new()
    {
        Webhook = "string",
        WorkspaceId = "string",
        Description = "string",
    });
    
    example, err := fastly.NewNgwafAlertSlackIntegration(ctx, "ngwafAlertSlackIntegrationResource", &fastly.NgwafAlertSlackIntegrationArgs{
    	Webhook:     pulumi.String("string"),
    	WorkspaceId: pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    var ngwafAlertSlackIntegrationResource = new NgwafAlertSlackIntegration("ngwafAlertSlackIntegrationResource", NgwafAlertSlackIntegrationArgs.builder()
        .webhook("string")
        .workspaceId("string")
        .description("string")
        .build());
    
    ngwaf_alert_slack_integration_resource = fastly.NgwafAlertSlackIntegration("ngwafAlertSlackIntegrationResource",
        webhook="string",
        workspace_id="string",
        description="string")
    
    const ngwafAlertSlackIntegrationResource = new fastly.NgwafAlertSlackIntegration("ngwafAlertSlackIntegrationResource", {
        webhook: "string",
        workspaceId: "string",
        description: "string",
    });
    
    type: fastly:NgwafAlertSlackIntegration
    properties:
        description: string
        webhook: string
        workspaceId: string
    

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

    Webhook string
    The Slack webhook URL.
    WorkspaceId string
    The ID of the workspace.
    Description string
    The description of the alert.
    Webhook string
    The Slack webhook URL.
    WorkspaceId string
    The ID of the workspace.
    Description string
    The description of the alert.
    webhook String
    The Slack webhook URL.
    workspaceId String
    The ID of the workspace.
    description String
    The description of the alert.
    webhook string
    The Slack webhook URL.
    workspaceId string
    The ID of the workspace.
    description string
    The description of the alert.
    webhook str
    The Slack webhook URL.
    workspace_id str
    The ID of the workspace.
    description str
    The description of the alert.
    webhook String
    The Slack webhook URL.
    workspaceId String
    The ID of the workspace.
    description String
    The description of the alert.

    Outputs

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

    Look up Existing NgwafAlertSlackIntegration Resource

    Get an existing NgwafAlertSlackIntegration 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?: NgwafAlertSlackIntegrationState, opts?: CustomResourceOptions): NgwafAlertSlackIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            webhook: Optional[str] = None,
            workspace_id: Optional[str] = None) -> NgwafAlertSlackIntegration
    func GetNgwafAlertSlackIntegration(ctx *Context, name string, id IDInput, state *NgwafAlertSlackIntegrationState, opts ...ResourceOption) (*NgwafAlertSlackIntegration, error)
    public static NgwafAlertSlackIntegration Get(string name, Input<string> id, NgwafAlertSlackIntegrationState? state, CustomResourceOptions? opts = null)
    public static NgwafAlertSlackIntegration get(String name, Output<String> id, NgwafAlertSlackIntegrationState state, CustomResourceOptions options)
    resources:  _:    type: fastly:NgwafAlertSlackIntegration    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:
    Description string
    The description of the alert.
    Webhook string
    The Slack webhook URL.
    WorkspaceId string
    The ID of the workspace.
    Description string
    The description of the alert.
    Webhook string
    The Slack webhook URL.
    WorkspaceId string
    The ID of the workspace.
    description String
    The description of the alert.
    webhook String
    The Slack webhook URL.
    workspaceId String
    The ID of the workspace.
    description string
    The description of the alert.
    webhook string
    The Slack webhook URL.
    workspaceId string
    The ID of the workspace.
    description str
    The description of the alert.
    webhook str
    The Slack webhook URL.
    workspace_id str
    The ID of the workspace.
    description String
    The description of the alert.
    webhook String
    The Slack webhook URL.
    workspaceId String
    The ID of the workspace.

    Import

    Fastly Next-Gen WAF Alert Webhook integrations can be imported using their ID and the ID of the workspace they belong to.

    $ pulumi import fastly:index/ngwafAlertSlackIntegration:NgwafAlertSlackIntegration example <workspace_id>/<alert_id>
    

    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