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

fastly.getNgwafAlertDatadogIntegration

Explore with Pulumi AI

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

    Use this data source to get a Fastly Next-Gen WAF Alert Datadog integration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const ngwafDatadogAlerts = fastly.getNgwafAlertDatadogIntegration({
        workspaceId: testRedactionsWorkspace.id,
    });
    export const ngwafDatadogAlertsAll = datadogAlerts;
    
    import pulumi
    import pulumi_fastly as fastly
    
    ngwaf_datadog_alerts = fastly.get_ngwaf_alert_datadog_integration(workspace_id=test_redactions_workspace["id"])
    pulumi.export("ngwafDatadogAlertsAll", datadog_alerts)
    
    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.LookupNgwafAlertDatadogIntegration(ctx, &fastly.LookupNgwafAlertDatadogIntegrationArgs{
    			WorkspaceId: testRedactionsWorkspace.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("ngwafDatadogAlertsAll", datadogAlerts)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var ngwafDatadogAlerts = Fastly.GetNgwafAlertDatadogIntegration.Invoke(new()
        {
            WorkspaceId = testRedactionsWorkspace.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["ngwafDatadogAlertsAll"] = datadogAlerts,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fastly.FastlyFunctions;
    import com.pulumi.fastly.inputs.GetNgwafAlertDatadogIntegrationArgs;
    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) {
            final var ngwafDatadogAlerts = FastlyFunctions.getNgwafAlertDatadogIntegration(GetNgwafAlertDatadogIntegrationArgs.builder()
                .workspaceId(testRedactionsWorkspace.id())
                .build());
    
            ctx.export("ngwafDatadogAlertsAll", datadogAlerts);
        }
    }
    
    variables:
      ngwafDatadogAlerts:
        fn::invoke:
          function: fastly:getNgwafAlertDatadogIntegration
          arguments:
            workspaceId: ${testRedactionsWorkspace.id}
    outputs:
      ngwafDatadogAlertsAll: ${datadogAlerts}
    

    Using getNgwafAlertDatadogIntegration

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getNgwafAlertDatadogIntegration(args: GetNgwafAlertDatadogIntegrationArgs, opts?: InvokeOptions): Promise<GetNgwafAlertDatadogIntegrationResult>
    function getNgwafAlertDatadogIntegrationOutput(args: GetNgwafAlertDatadogIntegrationOutputArgs, opts?: InvokeOptions): Output<GetNgwafAlertDatadogIntegrationResult>
    def get_ngwaf_alert_datadog_integration(workspace_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetNgwafAlertDatadogIntegrationResult
    def get_ngwaf_alert_datadog_integration_output(workspace_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetNgwafAlertDatadogIntegrationResult]
    func LookupNgwafAlertDatadogIntegration(ctx *Context, args *LookupNgwafAlertDatadogIntegrationArgs, opts ...InvokeOption) (*LookupNgwafAlertDatadogIntegrationResult, error)
    func LookupNgwafAlertDatadogIntegrationOutput(ctx *Context, args *LookupNgwafAlertDatadogIntegrationOutputArgs, opts ...InvokeOption) LookupNgwafAlertDatadogIntegrationResultOutput

    > Note: This function is named LookupNgwafAlertDatadogIntegration in the Go SDK.

    public static class GetNgwafAlertDatadogIntegration 
    {
        public static Task<GetNgwafAlertDatadogIntegrationResult> InvokeAsync(GetNgwafAlertDatadogIntegrationArgs args, InvokeOptions? opts = null)
        public static Output<GetNgwafAlertDatadogIntegrationResult> Invoke(GetNgwafAlertDatadogIntegrationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNgwafAlertDatadogIntegrationResult> getNgwafAlertDatadogIntegration(GetNgwafAlertDatadogIntegrationArgs args, InvokeOptions options)
    public static Output<GetNgwafAlertDatadogIntegrationResult> getNgwafAlertDatadogIntegration(GetNgwafAlertDatadogIntegrationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: fastly:index/getNgwafAlertDatadogIntegration:getNgwafAlertDatadogIntegration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    WorkspaceId string
    The ID of the workspace.
    WorkspaceId string
    The ID of the workspace.
    workspaceId String
    The ID of the workspace.
    workspaceId string
    The ID of the workspace.
    workspace_id str
    The ID of the workspace.
    workspaceId String
    The ID of the workspace.

    getNgwafAlertDatadogIntegration Result

    The following output properties are available:

    DatadogAlerts List<GetNgwafAlertDatadogIntegrationDatadogAlert>
    List of all Datadog alerts for a workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkspaceId string
    The ID of the workspace.
    DatadogAlerts []GetNgwafAlertDatadogIntegrationDatadogAlert
    List of all Datadog alerts for a workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkspaceId string
    The ID of the workspace.
    datadogAlerts List<GetNgwafAlertDatadogIntegrationDatadogAlert>
    List of all Datadog alerts for a workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    workspaceId String
    The ID of the workspace.
    datadogAlerts GetNgwafAlertDatadogIntegrationDatadogAlert[]
    List of all Datadog alerts for a workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    workspaceId string
    The ID of the workspace.
    datadog_alerts Sequence[GetNgwafAlertDatadogIntegrationDatadogAlert]
    List of all Datadog alerts for a workspace.
    id str
    The provider-assigned unique ID for this managed resource.
    workspace_id str
    The ID of the workspace.
    datadogAlerts List<Property Map>
    List of all Datadog alerts for a workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    workspaceId String
    The ID of the workspace.

    Supporting Types

    GetNgwafAlertDatadogIntegrationDatadogAlert

    Id string
    The ID of the workspace alert.
    Id string
    The ID of the workspace alert.
    id String
    The ID of the workspace alert.
    id string
    The ID of the workspace alert.
    id str
    The ID of the workspace alert.
    id String
    The ID of the workspace alert.

    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