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

lacework.AlertChannelMicrosoftTeams

Explore with Pulumi AI

You can configure Lacework to forward alerts to a Microsoft Teams channel through an incoming webhook. Create a incoming webhook

To find more information about the alert payload, see the Lacework support documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";

const example = new lacework.AlertChannelMicrosoftTeams("example", {webhookUrl: "https://outlook.office.com/webhook/api-token"});
Copy
import pulumi
import pulumi_lacework as lacework

example = lacework.AlertChannelMicrosoftTeams("example", webhook_url="https://outlook.office.com/webhook/api-token")
Copy
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.NewAlertChannelMicrosoftTeams(ctx, "example", &lacework.AlertChannelMicrosoftTeamsArgs{
			WebhookUrl: pulumi.String("https://outlook.office.com/webhook/api-token"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var example = new Lacework.AlertChannelMicrosoftTeams("example", new()
    {
        WebhookUrl = "https://outlook.office.com/webhook/api-token",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.AlertChannelMicrosoftTeams;
import com.pulumi.lacework.AlertChannelMicrosoftTeamsArgs;
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 AlertChannelMicrosoftTeams("example", AlertChannelMicrosoftTeamsArgs.builder()
            .webhookUrl("https://outlook.office.com/webhook/api-token")
            .build());

    }
}
Copy
resources:
  example:
    type: lacework:AlertChannelMicrosoftTeams
    properties:
      webhookUrl: https://outlook.office.com/webhook/api-token
Copy

Create AlertChannelMicrosoftTeams Resource

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

Constructor syntax

new AlertChannelMicrosoftTeams(name: string, args: AlertChannelMicrosoftTeamsArgs, opts?: CustomResourceOptions);
@overload
def AlertChannelMicrosoftTeams(resource_name: str,
                               args: AlertChannelMicrosoftTeamsArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def AlertChannelMicrosoftTeams(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               webhook_url: Optional[str] = None,
                               alert_channel_microsoft_teams_id: Optional[str] = None,
                               enabled: Optional[bool] = None,
                               name: Optional[str] = None,
                               test_integration: Optional[bool] = None)
func NewAlertChannelMicrosoftTeams(ctx *Context, name string, args AlertChannelMicrosoftTeamsArgs, opts ...ResourceOption) (*AlertChannelMicrosoftTeams, error)
public AlertChannelMicrosoftTeams(string name, AlertChannelMicrosoftTeamsArgs args, CustomResourceOptions? opts = null)
public AlertChannelMicrosoftTeams(String name, AlertChannelMicrosoftTeamsArgs args)
public AlertChannelMicrosoftTeams(String name, AlertChannelMicrosoftTeamsArgs args, CustomResourceOptions options)
type: lacework:AlertChannelMicrosoftTeams
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AlertChannelMicrosoftTeamsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AlertChannelMicrosoftTeamsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AlertChannelMicrosoftTeamsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AlertChannelMicrosoftTeamsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AlertChannelMicrosoftTeamsArgs
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 alertChannelMicrosoftTeamsResource = new Lacework.AlertChannelMicrosoftTeams("alertChannelMicrosoftTeamsResource", new()
{
    WebhookUrl = "string",
    AlertChannelMicrosoftTeamsId = "string",
    Enabled = false,
    Name = "string",
    TestIntegration = false,
});
Copy
example, err := lacework.NewAlertChannelMicrosoftTeams(ctx, "alertChannelMicrosoftTeamsResource", &lacework.AlertChannelMicrosoftTeamsArgs{
	WebhookUrl:                   pulumi.String("string"),
	AlertChannelMicrosoftTeamsId: pulumi.String("string"),
	Enabled:                      pulumi.Bool(false),
	Name:                         pulumi.String("string"),
	TestIntegration:              pulumi.Bool(false),
})
Copy
var alertChannelMicrosoftTeamsResource = new AlertChannelMicrosoftTeams("alertChannelMicrosoftTeamsResource", AlertChannelMicrosoftTeamsArgs.builder()
    .webhookUrl("string")
    .alertChannelMicrosoftTeamsId("string")
    .enabled(false)
    .name("string")
    .testIntegration(false)
    .build());
Copy
alert_channel_microsoft_teams_resource = lacework.AlertChannelMicrosoftTeams("alertChannelMicrosoftTeamsResource",
    webhook_url="string",
    alert_channel_microsoft_teams_id="string",
    enabled=False,
    name="string",
    test_integration=False)
Copy
const alertChannelMicrosoftTeamsResource = new lacework.AlertChannelMicrosoftTeams("alertChannelMicrosoftTeamsResource", {
    webhookUrl: "string",
    alertChannelMicrosoftTeamsId: "string",
    enabled: false,
    name: "string",
    testIntegration: false,
});
Copy
type: lacework:AlertChannelMicrosoftTeams
properties:
    alertChannelMicrosoftTeamsId: string
    enabled: false
    name: string
    testIntegration: false
    webhookUrl: string
Copy

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

WebhookUrl This property is required. string
The URL of your Microsoft Teams incoming webhook.
AlertChannelMicrosoftTeamsId 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 and modification
WebhookUrl This property is required. string
The URL of your Microsoft Teams incoming webhook.
AlertChannelMicrosoftTeamsId 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 and modification
webhookUrl This property is required. String
The URL of your Microsoft Teams incoming webhook.
alertChannelMicrosoftTeamsId 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 and modification
webhookUrl This property is required. string
The URL of your Microsoft Teams incoming webhook.
alertChannelMicrosoftTeamsId 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 and modification
webhook_url This property is required. str
The URL of your Microsoft Teams incoming webhook.
alert_channel_microsoft_teams_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 and modification
webhookUrl This property is required. String
The URL of your Microsoft Teams incoming webhook.
alertChannelMicrosoftTeamsId 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 and modification

Outputs

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

CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Id string
The provider-assigned unique ID for this managed resource.
IntgGuid string
The unique identifier of the integration
OrgLevel bool
TypeName string
CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Id string
The provider-assigned unique ID for this managed resource.
IntgGuid string
The unique identifier of the integration
OrgLevel bool
TypeName string
createdOrUpdatedBy String
createdOrUpdatedTime String
id String
The provider-assigned unique ID for this managed resource.
intgGuid String
The unique identifier of the integration
orgLevel Boolean
typeName String
createdOrUpdatedBy string
createdOrUpdatedTime string
id string
The provider-assigned unique ID for this managed resource.
intgGuid string
The unique identifier of the integration
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
The unique identifier of the integration
org_level bool
type_name str
createdOrUpdatedBy String
createdOrUpdatedTime String
id String
The provider-assigned unique ID for this managed resource.
intgGuid String
The unique identifier of the integration
orgLevel Boolean
typeName String

Look up Existing AlertChannelMicrosoftTeams Resource

Get an existing AlertChannelMicrosoftTeams 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?: AlertChannelMicrosoftTeamsState, opts?: CustomResourceOptions): AlertChannelMicrosoftTeams
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alert_channel_microsoft_teams_id: Optional[str] = None,
        created_or_updated_by: Optional[str] = None,
        created_or_updated_time: Optional[str] = None,
        enabled: Optional[bool] = 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,
        webhook_url: Optional[str] = None) -> AlertChannelMicrosoftTeams
func GetAlertChannelMicrosoftTeams(ctx *Context, name string, id IDInput, state *AlertChannelMicrosoftTeamsState, opts ...ResourceOption) (*AlertChannelMicrosoftTeams, error)
public static AlertChannelMicrosoftTeams Get(string name, Input<string> id, AlertChannelMicrosoftTeamsState? state, CustomResourceOptions? opts = null)
public static AlertChannelMicrosoftTeams get(String name, Output<String> id, AlertChannelMicrosoftTeamsState state, CustomResourceOptions options)
resources:  _:    type: lacework:AlertChannelMicrosoftTeams    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AlertChannelMicrosoftTeamsId string
CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Enabled bool
The state of the external integration. Defaults to true.
IntgGuid string
The unique identifier of the integration
Name string
The Alert Channel integration name.
OrgLevel bool
TestIntegration bool
Whether to test the integration of an alert channel upon creation and modification
TypeName string
WebhookUrl string
The URL of your Microsoft Teams incoming webhook.
AlertChannelMicrosoftTeamsId string
CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Enabled bool
The state of the external integration. Defaults to true.
IntgGuid string
The unique identifier of the integration
Name string
The Alert Channel integration name.
OrgLevel bool
TestIntegration bool
Whether to test the integration of an alert channel upon creation and modification
TypeName string
WebhookUrl string
The URL of your Microsoft Teams incoming webhook.
alertChannelMicrosoftTeamsId String
createdOrUpdatedBy String
createdOrUpdatedTime String
enabled Boolean
The state of the external integration. Defaults to true.
intgGuid String
The unique identifier of the integration
name String
The Alert Channel integration name.
orgLevel Boolean
testIntegration Boolean
Whether to test the integration of an alert channel upon creation and modification
typeName String
webhookUrl String
The URL of your Microsoft Teams incoming webhook.
alertChannelMicrosoftTeamsId string
createdOrUpdatedBy string
createdOrUpdatedTime string
enabled boolean
The state of the external integration. Defaults to true.
intgGuid string
The unique identifier of the integration
name string
The Alert Channel integration name.
orgLevel boolean
testIntegration boolean
Whether to test the integration of an alert channel upon creation and modification
typeName string
webhookUrl string
The URL of your Microsoft Teams incoming webhook.
alert_channel_microsoft_teams_id str
created_or_updated_by str
created_or_updated_time str
enabled bool
The state of the external integration. Defaults to true.
intg_guid str
The unique identifier of the integration
name str
The Alert Channel integration name.
org_level bool
test_integration bool
Whether to test the integration of an alert channel upon creation and modification
type_name str
webhook_url str
The URL of your Microsoft Teams incoming webhook.
alertChannelMicrosoftTeamsId String
createdOrUpdatedBy String
createdOrUpdatedTime String
enabled Boolean
The state of the external integration. Defaults to true.
intgGuid String
The unique identifier of the integration
name String
The Alert Channel integration name.
orgLevel Boolean
testIntegration Boolean
Whether to test the integration of an alert channel upon creation and modification
typeName String
webhookUrl String
The URL of your Microsoft Teams incoming webhook.

Import

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

$ pulumi import lacework:index/alertChannelMicrosoftTeams:AlertChannelMicrosoftTeams example EXAMPLE_1234BAE1E42182964D23973F44CFEA3C4AB63B99E9A1EC5
Copy

-> 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.