1. Packages
  2. Datadog Provider
  3. API Docs
  4. aws
  5. IntegrationEventBridge
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

datadog.aws.IntegrationEventBridge

Explore with Pulumi AI

datadog logo
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Datadog - Amazon Web Services integration EventBridge resource. This can be used to create and manage Event Sources for each Datadog integrated AWS account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new integration_aws_event_bridge resource
    const foo = new datadog.aws.IntegrationEventBridge("foo", {
        accountId: "123456789012",
        createEventBus: true,
        eventGeneratorName: "app-alerts",
        region: "us-east-1",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new integration_aws_event_bridge resource
    foo = datadog.aws.IntegrationEventBridge("foo",
        account_id="123456789012",
        create_event_bus=True,
        event_generator_name="app-alerts",
        region="us-east-1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/aws"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create new integration_aws_event_bridge resource
    		_, err := aws.NewIntegrationEventBridge(ctx, "foo", &aws.IntegrationEventBridgeArgs{
    			AccountId:          pulumi.String("123456789012"),
    			CreateEventBus:     pulumi.Bool(true),
    			EventGeneratorName: pulumi.String("app-alerts"),
    			Region:             pulumi.String("us-east-1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new integration_aws_event_bridge resource
        var foo = new Datadog.Aws.IntegrationEventBridge("foo", new()
        {
            AccountId = "123456789012",
            CreateEventBus = true,
            EventGeneratorName = "app-alerts",
            Region = "us-east-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.aws.IntegrationEventBridge;
    import com.pulumi.datadog.aws.IntegrationEventBridgeArgs;
    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) {
            // Create new integration_aws_event_bridge resource
            var foo = new IntegrationEventBridge("foo", IntegrationEventBridgeArgs.builder()
                .accountId("123456789012")
                .createEventBus(true)
                .eventGeneratorName("app-alerts")
                .region("us-east-1")
                .build());
    
        }
    }
    
    resources:
      # Create new integration_aws_event_bridge resource
      foo:
        type: datadog:aws:IntegrationEventBridge
        properties:
          accountId: '123456789012'
          createEventBus: true
          eventGeneratorName: app-alerts
          region: us-east-1
    

    Create IntegrationEventBridge Resource

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

    Constructor syntax

    new IntegrationEventBridge(name: string, args: IntegrationEventBridgeArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationEventBridge(resource_name: str,
                               args: IntegrationEventBridgeArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationEventBridge(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               account_id: Optional[str] = None,
                               event_generator_name: Optional[str] = None,
                               region: Optional[str] = None,
                               create_event_bus: Optional[bool] = None)
    func NewIntegrationEventBridge(ctx *Context, name string, args IntegrationEventBridgeArgs, opts ...ResourceOption) (*IntegrationEventBridge, error)
    public IntegrationEventBridge(string name, IntegrationEventBridgeArgs args, CustomResourceOptions? opts = null)
    public IntegrationEventBridge(String name, IntegrationEventBridgeArgs args)
    public IntegrationEventBridge(String name, IntegrationEventBridgeArgs args, CustomResourceOptions options)
    
    type: datadog:aws:IntegrationEventBridge
    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 IntegrationEventBridgeArgs
    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 IntegrationEventBridgeArgs
    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 IntegrationEventBridgeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationEventBridgeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationEventBridgeArgs
    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 integrationEventBridgeResource = new Datadog.Aws.IntegrationEventBridge("integrationEventBridgeResource", new()
    {
        AccountId = "string",
        EventGeneratorName = "string",
        Region = "string",
        CreateEventBus = false,
    });
    
    example, err := aws.NewIntegrationEventBridge(ctx, "integrationEventBridgeResource", &aws.IntegrationEventBridgeArgs{
    	AccountId:          pulumi.String("string"),
    	EventGeneratorName: pulumi.String("string"),
    	Region:             pulumi.String("string"),
    	CreateEventBus:     pulumi.Bool(false),
    })
    
    var integrationEventBridgeResource = new IntegrationEventBridge("integrationEventBridgeResource", IntegrationEventBridgeArgs.builder()
        .accountId("string")
        .eventGeneratorName("string")
        .region("string")
        .createEventBus(false)
        .build());
    
    integration_event_bridge_resource = datadog.aws.IntegrationEventBridge("integrationEventBridgeResource",
        account_id="string",
        event_generator_name="string",
        region="string",
        create_event_bus=False)
    
    const integrationEventBridgeResource = new datadog.aws.IntegrationEventBridge("integrationEventBridgeResource", {
        accountId: "string",
        eventGeneratorName: "string",
        region: "string",
        createEventBus: false,
    });
    
    type: datadog:aws:IntegrationEventBridge
    properties:
        accountId: string
        createEventBus: false
        eventGeneratorName: string
        region: string
    

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

    AccountId string
    Your AWS Account ID without dashes.
    EventGeneratorName string
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    Region string
    The event source's AWS region.
    CreateEventBus bool
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    AccountId string
    Your AWS Account ID without dashes.
    EventGeneratorName string
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    Region string
    The event source's AWS region.
    CreateEventBus bool
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    accountId String
    Your AWS Account ID without dashes.
    eventGeneratorName String
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region String
    The event source's AWS region.
    createEventBus Boolean
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    accountId string
    Your AWS Account ID without dashes.
    eventGeneratorName string
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region string
    The event source's AWS region.
    createEventBus boolean
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    account_id str
    Your AWS Account ID without dashes.
    event_generator_name str
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region str
    The event source's AWS region.
    create_event_bus bool
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    accountId String
    Your AWS Account ID without dashes.
    eventGeneratorName String
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region String
    The event source's AWS region.
    createEventBus Boolean
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IntegrationEventBridge Resource

    Get an existing IntegrationEventBridge 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?: IntegrationEventBridgeState, opts?: CustomResourceOptions): IntegrationEventBridge
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            create_event_bus: Optional[bool] = None,
            event_generator_name: Optional[str] = None,
            region: Optional[str] = None) -> IntegrationEventBridge
    func GetIntegrationEventBridge(ctx *Context, name string, id IDInput, state *IntegrationEventBridgeState, opts ...ResourceOption) (*IntegrationEventBridge, error)
    public static IntegrationEventBridge Get(string name, Input<string> id, IntegrationEventBridgeState? state, CustomResourceOptions? opts = null)
    public static IntegrationEventBridge get(String name, Output<String> id, IntegrationEventBridgeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AccountId string
    Your AWS Account ID without dashes.
    CreateEventBus bool
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    EventGeneratorName string
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    Region string
    The event source's AWS region.
    AccountId string
    Your AWS Account ID without dashes.
    CreateEventBus bool
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    EventGeneratorName string
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    Region string
    The event source's AWS region.
    accountId String
    Your AWS Account ID without dashes.
    createEventBus Boolean
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    eventGeneratorName String
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region String
    The event source's AWS region.
    accountId string
    Your AWS Account ID without dashes.
    createEventBus boolean
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    eventGeneratorName string
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region string
    The event source's AWS region.
    account_id str
    Your AWS Account ID without dashes.
    create_event_bus bool
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    event_generator_name str
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region str
    The event source's AWS region.
    accountId String
    Your AWS Account ID without dashes.
    createEventBus Boolean
    True if Datadog should create the event bus in addition to the event source. Requires the events:CreateEventBus permission. Defaults to true.
    eventGeneratorName String
    The given part of the event source name, which is then combined with an assigned suffix to form the full name.
    region String
    The event source's AWS region.

    Import

    Amazon Web Service EventBridge integrations are imported using the Event Source name as listed for an integrated AWS account in Datadog

    $ pulumi import datadog:aws/integrationEventBridge:IntegrationEventBridge foo event-source-name-abc12345
    

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

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi