lacework.AlertChannelAwsCloudwatch
Configure Lacework to forward alerts to an Amazon CloudWatch event bus.
Note: For more information about sending and receiving events between AWS accounts, refer to the Amazon CloudWatch Events User Guide.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const allEvents = new lacework.AlertChannelAwsCloudwatch("allEvents", {
    eventBusArn: "arn:aws:events:us-west-2:1234567890:event-bus/default",
    groupIssuesBy: "Events",
});
import pulumi
import pulumi_lacework as lacework
all_events = lacework.AlertChannelAwsCloudwatch("allEvents",
    event_bus_arn="arn:aws:events:us-west-2:1234567890:event-bus/default",
    group_issues_by="Events")
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.NewAlertChannelAwsCloudwatch(ctx, "allEvents", &lacework.AlertChannelAwsCloudwatchArgs{
			EventBusArn:   pulumi.String("arn:aws:events:us-west-2:1234567890:event-bus/default"),
			GroupIssuesBy: pulumi.String("Events"),
		})
		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 allEvents = new Lacework.AlertChannelAwsCloudwatch("allEvents", new()
    {
        EventBusArn = "arn:aws:events:us-west-2:1234567890:event-bus/default",
        GroupIssuesBy = "Events",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.AlertChannelAwsCloudwatch;
import com.pulumi.lacework.AlertChannelAwsCloudwatchArgs;
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 allEvents = new AlertChannelAwsCloudwatch("allEvents", AlertChannelAwsCloudwatchArgs.builder()
            .eventBusArn("arn:aws:events:us-west-2:1234567890:event-bus/default")
            .groupIssuesBy("Events")
            .build());
    }
}
resources:
  allEvents:
    type: lacework:AlertChannelAwsCloudwatch
    properties:
      eventBusArn: arn:aws:events:us-west-2:1234567890:event-bus/default
      groupIssuesBy: Events
Create AlertChannelAwsCloudwatch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertChannelAwsCloudwatch(name: string, args: AlertChannelAwsCloudwatchArgs, opts?: CustomResourceOptions);@overload
def AlertChannelAwsCloudwatch(resource_name: str,
                              args: AlertChannelAwsCloudwatchArgs,
                              opts: Optional[ResourceOptions] = None)
@overload
def AlertChannelAwsCloudwatch(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              event_bus_arn: Optional[str] = None,
                              alert_channel_aws_cloudwatch_id: Optional[str] = None,
                              enabled: Optional[bool] = None,
                              group_issues_by: Optional[str] = None,
                              name: Optional[str] = None,
                              test_integration: Optional[bool] = None)func NewAlertChannelAwsCloudwatch(ctx *Context, name string, args AlertChannelAwsCloudwatchArgs, opts ...ResourceOption) (*AlertChannelAwsCloudwatch, error)public AlertChannelAwsCloudwatch(string name, AlertChannelAwsCloudwatchArgs args, CustomResourceOptions? opts = null)
public AlertChannelAwsCloudwatch(String name, AlertChannelAwsCloudwatchArgs args)
public AlertChannelAwsCloudwatch(String name, AlertChannelAwsCloudwatchArgs args, CustomResourceOptions options)
type: lacework:AlertChannelAwsCloudwatch
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 AlertChannelAwsCloudwatchArgs
- 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 AlertChannelAwsCloudwatchArgs
- 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 AlertChannelAwsCloudwatchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertChannelAwsCloudwatchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertChannelAwsCloudwatchArgs
- 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 alertChannelAwsCloudwatchResource = new Lacework.AlertChannelAwsCloudwatch("alertChannelAwsCloudwatchResource", new()
{
    EventBusArn = "string",
    AlertChannelAwsCloudwatchId = "string",
    Enabled = false,
    GroupIssuesBy = "string",
    Name = "string",
    TestIntegration = false,
});
example, err := lacework.NewAlertChannelAwsCloudwatch(ctx, "alertChannelAwsCloudwatchResource", &lacework.AlertChannelAwsCloudwatchArgs{
	EventBusArn:                 pulumi.String("string"),
	AlertChannelAwsCloudwatchId: pulumi.String("string"),
	Enabled:                     pulumi.Bool(false),
	GroupIssuesBy:               pulumi.String("string"),
	Name:                        pulumi.String("string"),
	TestIntegration:             pulumi.Bool(false),
})
var alertChannelAwsCloudwatchResource = new AlertChannelAwsCloudwatch("alertChannelAwsCloudwatchResource", AlertChannelAwsCloudwatchArgs.builder()
    .eventBusArn("string")
    .alertChannelAwsCloudwatchId("string")
    .enabled(false)
    .groupIssuesBy("string")
    .name("string")
    .testIntegration(false)
    .build());
alert_channel_aws_cloudwatch_resource = lacework.AlertChannelAwsCloudwatch("alertChannelAwsCloudwatchResource",
    event_bus_arn="string",
    alert_channel_aws_cloudwatch_id="string",
    enabled=False,
    group_issues_by="string",
    name="string",
    test_integration=False)
const alertChannelAwsCloudwatchResource = new lacework.AlertChannelAwsCloudwatch("alertChannelAwsCloudwatchResource", {
    eventBusArn: "string",
    alertChannelAwsCloudwatchId: "string",
    enabled: false,
    groupIssuesBy: "string",
    name: "string",
    testIntegration: false,
});
type: lacework:AlertChannelAwsCloudwatch
properties:
    alertChannelAwsCloudwatchId: string
    enabled: false
    eventBusArn: string
    groupIssuesBy: string
    name: string
    testIntegration: false
AlertChannelAwsCloudwatch 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 AlertChannelAwsCloudwatch resource accepts the following input properties:
- EventBus stringArn 
- The ARN of your AWS CloudWatch event bus.
- AlertChannel stringAws Cloudwatch Id 
- Enabled bool
- The state of the external integration. Defaults to true.
- GroupIssues stringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- Name string
- The Alert Channel integration name.
- TestIntegration bool
- Whether to test the integration of an alert channel upon creation and modification
- EventBus stringArn 
- The ARN of your AWS CloudWatch event bus.
- AlertChannel stringAws Cloudwatch Id 
- Enabled bool
- The state of the external integration. Defaults to true.
- GroupIssues stringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- Name string
- The Alert Channel integration name.
- TestIntegration bool
- Whether to test the integration of an alert channel upon creation and modification
- eventBus StringArn 
- The ARN of your AWS CloudWatch event bus.
- alertChannel StringAws Cloudwatch Id 
- enabled Boolean
- The state of the external integration. Defaults to true.
- groupIssues StringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- name String
- The Alert Channel integration name.
- testIntegration Boolean
- Whether to test the integration of an alert channel upon creation and modification
- eventBus stringArn 
- The ARN of your AWS CloudWatch event bus.
- alertChannel stringAws Cloudwatch Id 
- enabled boolean
- The state of the external integration. Defaults to true.
- groupIssues stringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- name string
- The Alert Channel integration name.
- testIntegration boolean
- Whether to test the integration of an alert channel upon creation and modification
- event_bus_ strarn 
- The ARN of your AWS CloudWatch event bus.
- alert_channel_ straws_ cloudwatch_ id 
- enabled bool
- The state of the external integration. Defaults to true.
- group_issues_ strby 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- name str
- The Alert Channel integration name.
- test_integration bool
- Whether to test the integration of an alert channel upon creation and modification
- eventBus StringArn 
- The ARN of your AWS CloudWatch event bus.
- alertChannel StringAws Cloudwatch Id 
- enabled Boolean
- The state of the external integration. Defaults to true.
- groupIssues StringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- 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 AlertChannelAwsCloudwatch resource produces the following output properties:
- CreatedOr stringUpdated By 
- CreatedOr stringUpdated Time 
- Id string
- The provider-assigned unique ID for this managed resource.
- IntgGuid string
- The integration unique identifier
- OrgLevel bool
- TypeName string
- CreatedOr stringUpdated By 
- CreatedOr stringUpdated Time 
- Id string
- The provider-assigned unique ID for this managed resource.
- IntgGuid string
- The integration unique identifier
- OrgLevel bool
- TypeName string
- createdOr StringUpdated By 
- createdOr StringUpdated Time 
- id String
- The provider-assigned unique ID for this managed resource.
- intgGuid String
- The integration unique identifier
- orgLevel Boolean
- typeName String
- createdOr stringUpdated By 
- createdOr stringUpdated Time 
- id string
- The provider-assigned unique ID for this managed resource.
- intgGuid string
- The integration unique identifier
- orgLevel boolean
- typeName string
- created_or_ strupdated_ by 
- created_or_ strupdated_ time 
- id str
- The provider-assigned unique ID for this managed resource.
- intg_guid str
- The integration unique identifier
- org_level bool
- type_name str
- createdOr StringUpdated By 
- createdOr StringUpdated Time 
- id String
- The provider-assigned unique ID for this managed resource.
- intgGuid String
- The integration unique identifier
- orgLevel Boolean
- typeName String
Look up Existing AlertChannelAwsCloudwatch Resource
Get an existing AlertChannelAwsCloudwatch 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?: AlertChannelAwsCloudwatchState, opts?: CustomResourceOptions): AlertChannelAwsCloudwatch@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alert_channel_aws_cloudwatch_id: Optional[str] = None,
        created_or_updated_by: Optional[str] = None,
        created_or_updated_time: Optional[str] = None,
        enabled: Optional[bool] = None,
        event_bus_arn: Optional[str] = None,
        group_issues_by: 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) -> AlertChannelAwsCloudwatchfunc GetAlertChannelAwsCloudwatch(ctx *Context, name string, id IDInput, state *AlertChannelAwsCloudwatchState, opts ...ResourceOption) (*AlertChannelAwsCloudwatch, error)public static AlertChannelAwsCloudwatch Get(string name, Input<string> id, AlertChannelAwsCloudwatchState? state, CustomResourceOptions? opts = null)public static AlertChannelAwsCloudwatch get(String name, Output<String> id, AlertChannelAwsCloudwatchState state, CustomResourceOptions options)resources:  _:    type: lacework:AlertChannelAwsCloudwatch    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.
- AlertChannel stringAws Cloudwatch Id 
- CreatedOr stringUpdated By 
- CreatedOr stringUpdated Time 
- Enabled bool
- The state of the external integration. Defaults to true.
- EventBus stringArn 
- The ARN of your AWS CloudWatch event bus.
- GroupIssues stringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- IntgGuid string
- The integration unique identifier
- 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
- AlertChannel stringAws Cloudwatch Id 
- CreatedOr stringUpdated By 
- CreatedOr stringUpdated Time 
- Enabled bool
- The state of the external integration. Defaults to true.
- EventBus stringArn 
- The ARN of your AWS CloudWatch event bus.
- GroupIssues stringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- IntgGuid string
- The integration unique identifier
- 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
- alertChannel StringAws Cloudwatch Id 
- createdOr StringUpdated By 
- createdOr StringUpdated Time 
- enabled Boolean
- The state of the external integration. Defaults to true.
- eventBus StringArn 
- The ARN of your AWS CloudWatch event bus.
- groupIssues StringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- intgGuid String
- The integration unique identifier
- 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
- alertChannel stringAws Cloudwatch Id 
- createdOr stringUpdated By 
- createdOr stringUpdated Time 
- enabled boolean
- The state of the external integration. Defaults to true.
- eventBus stringArn 
- The ARN of your AWS CloudWatch event bus.
- groupIssues stringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- intgGuid string
- The integration unique identifier
- 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
- alert_channel_ straws_ cloudwatch_ id 
- created_or_ strupdated_ by 
- created_or_ strupdated_ time 
- enabled bool
- The state of the external integration. Defaults to true.
- event_bus_ strarn 
- The ARN of your AWS CloudWatch event bus.
- group_issues_ strby 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- intg_guid str
- The integration unique identifier
- 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
- alertChannel StringAws Cloudwatch Id 
- createdOr StringUpdated By 
- createdOr StringUpdated Time 
- enabled Boolean
- The state of the external integration. Defaults to true.
- eventBus StringArn 
- The ARN of your AWS CloudWatch event bus.
- groupIssues StringBy 
- Defines how Lacework compliance events get grouped. Must be one of EventsorResources. Defaults toEvents. The available options are:- Events: Single AWS CloudWatch events will be created when compliance events of the same type but from different resources are detected by Lacework. For example, if three different S3 resources are generating the same compliance event, only one AWS event is created on the AWS CloudWatch event bus.
- Resources: Multiple AWS CloudWatch events will be created when multiple resources are generating the same compliance event. For example, if three different S3 resources are generating the same compliance event, three AWS events are created on the AWS CloudWatch event bus.
 
- intgGuid String
- The integration unique identifier
- 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
Import
A Lacework Amazon CloudWatch Alert Channel integration can be imported using a INT_GUID, e.g.
$ pulumi import lacework:index/alertChannelAwsCloudwatch:AlertChannelAwsCloudwatch all_events 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 laceworkTerraform Provider.
