1. Packages
  2. Lacework Provider
  3. API Docs
  4. AlertChannelPagerduty
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

lacework.AlertChannelPagerduty

Explore with Pulumi AI

lacework logo
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

    Configure Lacework to forward alerts to PagerDuty through an API integration key.

    PagerDuty + Lacework Integration Benefits

    • Extend Lacework Events to route to the correct people, at the correct time that fits your existing business processes using PagerDuty triage, escalations, and workflows.
    • One-way event notification forwards from Lacework to PagerDuty.
    • Lacework Alert Routing and Alert Rules settings allow you to configure which events and severities to receive and which resource groups and event categories you want events for. They grant complete control of the alert channels forwarded to PagerDuty.

    How it Works

    Lacework events that arise from anomaly detection, compliance, vulnerabilities, or configured rule definitions send an event to a service in PagerDuty. Events from Lacework can either trigger a new incident on the corresponding PagerDuty service or be grouped as alerts into an existing incident.

    For additional information about incidents and alerts, see https://support.pagerduty.com/docs/incidents and https://support.pagerduty.com/docs/alerts.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as lacework from "@pulumi/lacework";
    
    const critical = new lacework.AlertChannelPagerduty("critical", {integrationKey: "1234abc8901abc567abc123abc78e012"});
    
    import pulumi
    import pulumi_lacework as lacework
    
    critical = lacework.AlertChannelPagerduty("critical", integration_key="1234abc8901abc567abc123abc78e012")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := lacework.NewAlertChannelPagerduty(ctx, "critical", &lacework.AlertChannelPagerdutyArgs{
    			IntegrationKey: pulumi.String("1234abc8901abc567abc123abc78e012"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Lacework = Pulumi.Lacework;
    
    return await Deployment.RunAsync(() => 
    {
        var critical = new Lacework.AlertChannelPagerduty("critical", new()
        {
            IntegrationKey = "1234abc8901abc567abc123abc78e012",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.lacework.AlertChannelPagerduty;
    import com.pulumi.lacework.AlertChannelPagerdutyArgs;
    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 critical = new AlertChannelPagerduty("critical", AlertChannelPagerdutyArgs.builder()
                .integrationKey("1234abc8901abc567abc123abc78e012")
                .build());
    
        }
    }
    
    resources:
      critical:
        type: lacework:AlertChannelPagerduty
        properties:
          integrationKey: 1234abc8901abc567abc123abc78e012
    

    Create AlertChannelPagerduty Resource

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

    Constructor syntax

    new AlertChannelPagerduty(name: string, args: AlertChannelPagerdutyArgs, opts?: CustomResourceOptions);
    @overload
    def AlertChannelPagerduty(resource_name: str,
                              args: AlertChannelPagerdutyArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertChannelPagerduty(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              integration_key: Optional[str] = None,
                              alert_channel_pagerduty_id: Optional[str] = None,
                              enabled: Optional[bool] = None,
                              name: Optional[str] = None,
                              test_integration: Optional[bool] = None)
    func NewAlertChannelPagerduty(ctx *Context, name string, args AlertChannelPagerdutyArgs, opts ...ResourceOption) (*AlertChannelPagerduty, error)
    public AlertChannelPagerduty(string name, AlertChannelPagerdutyArgs args, CustomResourceOptions? opts = null)
    public AlertChannelPagerduty(String name, AlertChannelPagerdutyArgs args)
    public AlertChannelPagerduty(String name, AlertChannelPagerdutyArgs args, CustomResourceOptions options)
    
    type: lacework:AlertChannelPagerduty
    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 AlertChannelPagerdutyArgs
    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 AlertChannelPagerdutyArgs
    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 AlertChannelPagerdutyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertChannelPagerdutyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertChannelPagerdutyArgs
    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 alertChannelPagerdutyResource = new Lacework.AlertChannelPagerduty("alertChannelPagerdutyResource", new()
    {
        IntegrationKey = "string",
        AlertChannelPagerdutyId = "string",
        Enabled = false,
        Name = "string",
        TestIntegration = false,
    });
    
    example, err := lacework.NewAlertChannelPagerduty(ctx, "alertChannelPagerdutyResource", &lacework.AlertChannelPagerdutyArgs{
    	IntegrationKey:          pulumi.String("string"),
    	AlertChannelPagerdutyId: pulumi.String("string"),
    	Enabled:                 pulumi.Bool(false),
    	Name:                    pulumi.String("string"),
    	TestIntegration:         pulumi.Bool(false),
    })
    
    var alertChannelPagerdutyResource = new AlertChannelPagerduty("alertChannelPagerdutyResource", AlertChannelPagerdutyArgs.builder()
        .integrationKey("string")
        .alertChannelPagerdutyId("string")
        .enabled(false)
        .name("string")
        .testIntegration(false)
        .build());
    
    alert_channel_pagerduty_resource = lacework.AlertChannelPagerduty("alertChannelPagerdutyResource",
        integration_key="string",
        alert_channel_pagerduty_id="string",
        enabled=False,
        name="string",
        test_integration=False)
    
    const alertChannelPagerdutyResource = new lacework.AlertChannelPagerduty("alertChannelPagerdutyResource", {
        integrationKey: "string",
        alertChannelPagerdutyId: "string",
        enabled: false,
        name: "string",
        testIntegration: false,
    });
    
    type: lacework:AlertChannelPagerduty
    properties:
        alertChannelPagerdutyId: string
        enabled: false
        integrationKey: string
        name: string
        testIntegration: false
    

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

    IntegrationKey string
    The PagerDuty service integration key.
    AlertChannelPagerdutyId string
    Enabled bool
    The state of the external integration. Defaults to true.
    Name string
    The Alert Channel integration name.
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation or modification
    IntegrationKey string
    The PagerDuty service integration key.
    AlertChannelPagerdutyId string
    Enabled bool
    The state of the external integration. Defaults to true.
    Name string
    The Alert Channel integration name.
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation or modification
    integrationKey String
    The PagerDuty service integration key.
    alertChannelPagerdutyId String
    enabled Boolean
    The state of the external integration. Defaults to true.
    name String
    The Alert Channel integration name.
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation or modification
    integrationKey string
    The PagerDuty service integration key.
    alertChannelPagerdutyId string
    enabled boolean
    The state of the external integration. Defaults to true.
    name string
    The Alert Channel integration name.
    testIntegration boolean
    Whether to test the integration of an alert channel upon creation or modification
    integration_key str
    The PagerDuty service integration key.
    alert_channel_pagerduty_id str
    enabled bool
    The state of the external integration. Defaults to true.
    name str
    The Alert Channel integration name.
    test_integration bool
    Whether to test the integration of an alert channel upon creation or modification
    integrationKey String
    The PagerDuty service integration key.
    alertChannelPagerdutyId String
    enabled Boolean
    The state of the external integration. Defaults to true.
    name String
    The Alert Channel integration name.
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation or modification

    Outputs

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

    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    IntgGuid string
    OrgLevel bool
    TypeName string
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    IntgGuid string
    OrgLevel bool
    TypeName string
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    id String
    The provider-assigned unique ID for this managed resource.
    intgGuid String
    orgLevel Boolean
    typeName String
    createdOrUpdatedBy string
    createdOrUpdatedTime string
    id string
    The provider-assigned unique ID for this managed resource.
    intgGuid string
    orgLevel boolean
    typeName string
    created_or_updated_by str
    created_or_updated_time str
    id str
    The provider-assigned unique ID for this managed resource.
    intg_guid str
    org_level bool
    type_name str
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    id String
    The provider-assigned unique ID for this managed resource.
    intgGuid String
    orgLevel Boolean
    typeName String

    Look up Existing AlertChannelPagerduty Resource

    Get an existing AlertChannelPagerduty 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?: AlertChannelPagerdutyState, opts?: CustomResourceOptions): AlertChannelPagerduty
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_channel_pagerduty_id: Optional[str] = None,
            created_or_updated_by: Optional[str] = None,
            created_or_updated_time: Optional[str] = None,
            enabled: Optional[bool] = None,
            integration_key: Optional[str] = None,
            intg_guid: Optional[str] = None,
            name: Optional[str] = None,
            org_level: Optional[bool] = None,
            test_integration: Optional[bool] = None,
            type_name: Optional[str] = None) -> AlertChannelPagerduty
    func GetAlertChannelPagerduty(ctx *Context, name string, id IDInput, state *AlertChannelPagerdutyState, opts ...ResourceOption) (*AlertChannelPagerduty, error)
    public static AlertChannelPagerduty Get(string name, Input<string> id, AlertChannelPagerdutyState? state, CustomResourceOptions? opts = null)
    public static AlertChannelPagerduty get(String name, Output<String> id, AlertChannelPagerdutyState state, CustomResourceOptions options)
    resources:  _:    type: lacework:AlertChannelPagerduty    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:
    AlertChannelPagerdutyId string
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationKey string
    The PagerDuty service integration key.
    IntgGuid string
    Name string
    The Alert Channel integration name.
    OrgLevel bool
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation or modification
    TypeName string
    AlertChannelPagerdutyId string
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationKey string
    The PagerDuty service integration key.
    IntgGuid string
    Name string
    The Alert Channel integration name.
    OrgLevel bool
    TestIntegration bool
    Whether to test the integration of an alert channel upon creation or modification
    TypeName string
    alertChannelPagerdutyId String
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationKey String
    The PagerDuty service integration key.
    intgGuid String
    name String
    The Alert Channel integration name.
    orgLevel Boolean
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation or modification
    typeName String
    alertChannelPagerdutyId string
    createdOrUpdatedBy string
    createdOrUpdatedTime string
    enabled boolean
    The state of the external integration. Defaults to true.
    integrationKey string
    The PagerDuty service integration key.
    intgGuid string
    name string
    The Alert Channel integration name.
    orgLevel boolean
    testIntegration boolean
    Whether to test the integration of an alert channel upon creation or modification
    typeName string
    alert_channel_pagerduty_id str
    created_or_updated_by str
    created_or_updated_time str
    enabled bool
    The state of the external integration. Defaults to true.
    integration_key str
    The PagerDuty service integration key.
    intg_guid str
    name str
    The Alert Channel integration name.
    org_level bool
    test_integration bool
    Whether to test the integration of an alert channel upon creation or modification
    type_name str
    alertChannelPagerdutyId String
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationKey String
    The PagerDuty service integration key.
    intgGuid String
    name String
    The Alert Channel integration name.
    orgLevel Boolean
    testIntegration Boolean
    Whether to test the integration of an alert channel upon creation or modification
    typeName String

    Import

    A Lacework PagerDuty Alert Channel integration can be imported using a INT_GUID, e.g.

    $ pulumi import lacework:index/alertChannelPagerduty:AlertChannelPagerduty critical EXAMPLE_1234BAE1E42182964D23973F44CFEA3C4AB63B99E9A1EC5
    

    -> Note: To retrieve the INT_GUID from existing integrations in your account, use the Lacework CLI command lacework alert-channel list. To install this tool follow this documentation.

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

    Package Details

    Repository
    lacework lacework/terraform-provider-lacework
    License
    Notes
    This Pulumi package is based on the lacework Terraform Provider.
    lacework logo
    lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework