1. Registry
  2. Packages
  3. Fastly Provider
  4. API Docs
  5. getAuditLogEventMapping
Viewing docs for Fastly v12.6.0
published on Wednesday, Aug 12, 2026 by Pulumi
fastly logo
Viewing docs for Fastly v12.6.0
published on Wednesday, Aug 12, 2026 by Pulumi

    Use this data source to get information about an existing Audit Log Event Mapping for use with other resources.

    Warning: The data source’s filters are applied using an AND boolean operator, so depending on the combination of filters, they may become mutually exclusive. The exception to this is id which must not be specified in combination with any of the others.

    Note: If more or less than a single match is returned by the search, an error will be reported. Ensure that your search is specific enough to return a single mapping.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const example = fastly.getAuditLogEventMapping({
        name: "Example mapping",
        scopeType: "account",
    });
    
    import pulumi
    import pulumi_fastly as fastly
    
    example = fastly.get_audit_log_event_mapping(name="Example mapping",
        scope_type="account")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-fastly/sdk/v12/go/fastly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fastly.GetAuditLogEventMapping(ctx, &fastly.LookupAuditLogEventMappingArgs{
    			Name:      pulumi.StringRef("Example mapping"),
    			ScopeType: pulumi.StringRef("account"),
    		}, nil)
    		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 = Fastly.GetAuditLogEventMapping.Invoke(new()
        {
            Name = "Example mapping",
            ScopeType = "account",
        });
    
    });
    
    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.GetAuditLogEventMappingArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = FastlyFunctions.getAuditLogEventMapping(GetAuditLogEventMappingArgs.builder()
                .name("Example mapping")
                .scopeType("account")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: fastly:getAuditLogEventMapping
          arguments:
            name: Example mapping
            scopeType: account
    
    pulumi {
      required_providers {
        fastly = {
          source = "pulumi/fastly"
        }
      }
    }
    
    data "fastly_getauditlogeventmapping" "example" {
      name       = "Example mapping"
      scope_type = "account"
    }
    

    Using getAuditLogEventMapping

    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 getAuditLogEventMapping(args: GetAuditLogEventMappingArgs, opts?: InvokeOptions): Promise<GetAuditLogEventMappingResult>
    function getAuditLogEventMappingOutput(args: GetAuditLogEventMappingOutputArgs, opts?: InvokeOutputOptions): Output<GetAuditLogEventMappingResult>
    def get_audit_log_event_mapping(id: Optional[str] = None,
                                    integration_id: Optional[str] = None,
                                    mapping_status: Optional[str] = None,
                                    name: Optional[str] = None,
                                    scope_id: Optional[str] = None,
                                    scope_type: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAuditLogEventMappingResult
    def get_audit_log_event_mapping_output(id: pulumi.Input[Optional[str]] = None,
                                    integration_id: pulumi.Input[Optional[str]] = None,
                                    mapping_status: pulumi.Input[Optional[str]] = None,
                                    name: pulumi.Input[Optional[str]] = None,
                                    scope_id: pulumi.Input[Optional[str]] = None,
                                    scope_type: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetAuditLogEventMappingResult]
    func LookupAuditLogEventMapping(ctx *Context, args *LookupAuditLogEventMappingArgs, opts ...InvokeOption) (*LookupAuditLogEventMappingResult, error)
    func LookupAuditLogEventMappingOutput(ctx *Context, args *LookupAuditLogEventMappingOutputArgs, opts ...InvokeOption) LookupAuditLogEventMappingResultOutput

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

    public static class GetAuditLogEventMapping 
    {
        public static Task<GetAuditLogEventMappingResult> InvokeAsync(GetAuditLogEventMappingArgs args, InvokeOptions? opts = null)
        public static Output<GetAuditLogEventMappingResult> Invoke(GetAuditLogEventMappingInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAuditLogEventMappingResult> Invoke(GetAuditLogEventMappingInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAuditLogEventMappingResult> getAuditLogEventMapping(GetAuditLogEventMappingArgs args, InvokeOptions options)
    public static Output<GetAuditLogEventMappingResult> getAuditLogEventMapping(GetAuditLogEventMappingArgs args, InvokeOptions options)
    public static Output<GetAuditLogEventMappingResult> getAuditLogEventMapping(GetAuditLogEventMappingArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: fastly:index/getAuditLogEventMapping:getAuditLogEventMapping
      arguments:
        # arguments dictionary
    data "fastly_get_audit_log_event_mapping" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Unique ID of the mapping. Conflicts with all the other filters.
    IntegrationId string
    Filters results to mappings that reference the given integration ID.
    MappingStatus string
    Filters results by mapping status: active or inactive.
    Name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    ScopeId string
    Filters results to mappings that apply to the given service or workspace ID.
    ScopeType string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    Id string
    Unique ID of the mapping. Conflicts with all the other filters.
    IntegrationId string
    Filters results to mappings that reference the given integration ID.
    MappingStatus string
    Filters results by mapping status: active or inactive.
    Name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    ScopeId string
    Filters results to mappings that apply to the given service or workspace ID.
    ScopeType string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    id string
    Unique ID of the mapping. Conflicts with all the other filters.
    integration_id string
    Filters results to mappings that reference the given integration ID.
    mapping_status string
    Filters results by mapping status: active or inactive.
    name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    scope_id string
    Filters results to mappings that apply to the given service or workspace ID.
    scope_type string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    id String
    Unique ID of the mapping. Conflicts with all the other filters.
    integrationId String
    Filters results to mappings that reference the given integration ID.
    mappingStatus String
    Filters results by mapping status: active or inactive.
    name String
    Filters results to mappings whose name contains the given string (case-insensitive).
    scopeId String
    Filters results to mappings that apply to the given service or workspace ID.
    scopeType String
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    id string
    Unique ID of the mapping. Conflicts with all the other filters.
    integrationId string
    Filters results to mappings that reference the given integration ID.
    mappingStatus string
    Filters results by mapping status: active or inactive.
    name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    scopeId string
    Filters results to mappings that apply to the given service or workspace ID.
    scopeType string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    id str
    Unique ID of the mapping. Conflicts with all the other filters.
    integration_id str
    Filters results to mappings that reference the given integration ID.
    mapping_status str
    Filters results by mapping status: active or inactive.
    name str
    Filters results to mappings whose name contains the given string (case-insensitive).
    scope_id str
    Filters results to mappings that apply to the given service or workspace ID.
    scope_type str
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    id String
    Unique ID of the mapping. Conflicts with all the other filters.
    integrationId String
    Filters results to mappings that reference the given integration ID.
    mappingStatus String
    Filters results by mapping status: active or inactive.
    name String
    Filters results to mappings whose name contains the given string (case-insensitive).
    scopeId String
    Filters results to mappings that apply to the given service or workspace ID.
    scopeType String
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.

    getAuditLogEventMapping Result

    The following output properties are available:

    CreatedAt string
    Timestamp (RFC3339) when the mapping was created.
    Description string
    Description of the mapping.
    EventTypes List<string>
    The audit event types that trigger a notification.
    Id string
    Unique ID of the mapping. Conflicts with all the other filters.
    IntegrationIds List<string>
    The IDs of the integrations that receive notifications.
    MappingStatus string
    Filters results by mapping status: active or inactive.
    Name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    ScopeIds List<string>
    The specific service or workspace IDs the mapping is scoped to.
    ScopeType string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    UpdatedAt string
    Timestamp (RFC3339) when the mapping was last updated.
    IntegrationId string
    Filters results to mappings that reference the given integration ID.
    ScopeId string
    Filters results to mappings that apply to the given service or workspace ID.
    CreatedAt string
    Timestamp (RFC3339) when the mapping was created.
    Description string
    Description of the mapping.
    EventTypes []string
    The audit event types that trigger a notification.
    Id string
    Unique ID of the mapping. Conflicts with all the other filters.
    IntegrationIds []string
    The IDs of the integrations that receive notifications.
    MappingStatus string
    Filters results by mapping status: active or inactive.
    Name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    ScopeIds []string
    The specific service or workspace IDs the mapping is scoped to.
    ScopeType string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    UpdatedAt string
    Timestamp (RFC3339) when the mapping was last updated.
    IntegrationId string
    Filters results to mappings that reference the given integration ID.
    ScopeId string
    Filters results to mappings that apply to the given service or workspace ID.
    created_at string
    Timestamp (RFC3339) when the mapping was created.
    description string
    Description of the mapping.
    event_types list(string)
    The audit event types that trigger a notification.
    id string
    Unique ID of the mapping. Conflicts with all the other filters.
    integration_ids list(string)
    The IDs of the integrations that receive notifications.
    mapping_status string
    Filters results by mapping status: active or inactive.
    name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    scope_ids list(string)
    The specific service or workspace IDs the mapping is scoped to.
    scope_type string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    updated_at string
    Timestamp (RFC3339) when the mapping was last updated.
    integration_id string
    Filters results to mappings that reference the given integration ID.
    scope_id string
    Filters results to mappings that apply to the given service or workspace ID.
    createdAt String
    Timestamp (RFC3339) when the mapping was created.
    description String
    Description of the mapping.
    eventTypes List<String>
    The audit event types that trigger a notification.
    id String
    Unique ID of the mapping. Conflicts with all the other filters.
    integrationIds List<String>
    The IDs of the integrations that receive notifications.
    mappingStatus String
    Filters results by mapping status: active or inactive.
    name String
    Filters results to mappings whose name contains the given string (case-insensitive).
    scopeIds List<String>
    The specific service or workspace IDs the mapping is scoped to.
    scopeType String
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    updatedAt String
    Timestamp (RFC3339) when the mapping was last updated.
    integrationId String
    Filters results to mappings that reference the given integration ID.
    scopeId String
    Filters results to mappings that apply to the given service or workspace ID.
    createdAt string
    Timestamp (RFC3339) when the mapping was created.
    description string
    Description of the mapping.
    eventTypes string[]
    The audit event types that trigger a notification.
    id string
    Unique ID of the mapping. Conflicts with all the other filters.
    integrationIds string[]
    The IDs of the integrations that receive notifications.
    mappingStatus string
    Filters results by mapping status: active or inactive.
    name string
    Filters results to mappings whose name contains the given string (case-insensitive).
    scopeIds string[]
    The specific service or workspace IDs the mapping is scoped to.
    scopeType string
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    updatedAt string
    Timestamp (RFC3339) when the mapping was last updated.
    integrationId string
    Filters results to mappings that reference the given integration ID.
    scopeId string
    Filters results to mappings that apply to the given service or workspace ID.
    created_at str
    Timestamp (RFC3339) when the mapping was created.
    description str
    Description of the mapping.
    event_types Sequence[str]
    The audit event types that trigger a notification.
    id str
    Unique ID of the mapping. Conflicts with all the other filters.
    integration_ids Sequence[str]
    The IDs of the integrations that receive notifications.
    mapping_status str
    Filters results by mapping status: active or inactive.
    name str
    Filters results to mappings whose name contains the given string (case-insensitive).
    scope_ids Sequence[str]
    The specific service or workspace IDs the mapping is scoped to.
    scope_type str
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    updated_at str
    Timestamp (RFC3339) when the mapping was last updated.
    integration_id str
    Filters results to mappings that reference the given integration ID.
    scope_id str
    Filters results to mappings that apply to the given service or workspace ID.
    createdAt String
    Timestamp (RFC3339) when the mapping was created.
    description String
    Description of the mapping.
    eventTypes List<String>
    The audit event types that trigger a notification.
    id String
    Unique ID of the mapping. Conflicts with all the other filters.
    integrationIds List<String>
    The IDs of the integrations that receive notifications.
    mappingStatus String
    Filters results by mapping status: active or inactive.
    name String
    Filters results to mappings whose name contains the given string (case-insensitive).
    scopeIds List<String>
    The specific service or workspace IDs the mapping is scoped to.
    scopeType String
    Filters results to the given scope type: account, vcl, wasm, or ngwaf.
    updatedAt String
    Timestamp (RFC3339) when the mapping was last updated.
    integrationId String
    Filters results to mappings that reference the given integration ID.
    scopeId String
    Filters results to mappings that apply to the given service or workspace ID.

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Viewing docs for Fastly v12.6.0
    published on Wednesday, Aug 12, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial