1. Packages
  2. Datadog
  3. API Docs
  4. aws
  5. IntegrationLambdaArn
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

datadog.aws.IntegrationLambdaArn

Explore with Pulumi AI

datadog logo
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

    Provides a Datadog - Amazon Web Services integration Lambda ARN resource. This can be used to create and manage the log collection Lambdas for an account.

    Update operations are currently not supported with datadog API so any change forces a new resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create a new Datadog - Amazon Web Services integration Lambda ARN
    const mainCollector = new datadog.aws.IntegrationLambdaArn("main_collector", {
        accountId: "1234567890",
        lambdaArn: "arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create a new Datadog - Amazon Web Services integration Lambda ARN
    main_collector = datadog.aws.IntegrationLambdaArn("main_collector",
        account_id="1234567890",
        lambda_arn="arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder")
    
    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 a new Datadog - Amazon Web Services integration Lambda ARN
    		_, err := aws.NewIntegrationLambdaArn(ctx, "main_collector", &aws.IntegrationLambdaArnArgs{
    			AccountId: pulumi.String("1234567890"),
    			LambdaArn: pulumi.String("arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder"),
    		})
    		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 a new Datadog - Amazon Web Services integration Lambda ARN
        var mainCollector = new Datadog.Aws.IntegrationLambdaArn("main_collector", new()
        {
            AccountId = "1234567890",
            LambdaArn = "arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.aws.IntegrationLambdaArn;
    import com.pulumi.datadog.aws.IntegrationLambdaArnArgs;
    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 a new Datadog - Amazon Web Services integration Lambda ARN
            var mainCollector = new IntegrationLambdaArn("mainCollector", IntegrationLambdaArnArgs.builder()
                .accountId("1234567890")
                .lambdaArn("arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder")
                .build());
    
        }
    }
    
    resources:
      # Create a new Datadog - Amazon Web Services integration Lambda ARN
      mainCollector:
        type: datadog:aws:IntegrationLambdaArn
        name: main_collector
        properties:
          accountId: '1234567890'
          lambdaArn: arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder
    

    Create IntegrationLambdaArn Resource

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

    Constructor syntax

    new IntegrationLambdaArn(name: string, args: IntegrationLambdaArnArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationLambdaArn(resource_name: str,
                             args: IntegrationLambdaArnArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationLambdaArn(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_id: Optional[str] = None,
                             lambda_arn: Optional[str] = None)
    func NewIntegrationLambdaArn(ctx *Context, name string, args IntegrationLambdaArnArgs, opts ...ResourceOption) (*IntegrationLambdaArn, error)
    public IntegrationLambdaArn(string name, IntegrationLambdaArnArgs args, CustomResourceOptions? opts = null)
    public IntegrationLambdaArn(String name, IntegrationLambdaArnArgs args)
    public IntegrationLambdaArn(String name, IntegrationLambdaArnArgs args, CustomResourceOptions options)
    
    type: datadog:aws:IntegrationLambdaArn
    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 IntegrationLambdaArnArgs
    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 IntegrationLambdaArnArgs
    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 IntegrationLambdaArnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationLambdaArnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationLambdaArnArgs
    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 integrationLambdaArnResource = new Datadog.Aws.IntegrationLambdaArn("integrationLambdaArnResource", new()
    {
        AccountId = "string",
        LambdaArn = "string",
    });
    
    example, err := aws.NewIntegrationLambdaArn(ctx, "integrationLambdaArnResource", &aws.IntegrationLambdaArnArgs{
    	AccountId: pulumi.String("string"),
    	LambdaArn: pulumi.String("string"),
    })
    
    var integrationLambdaArnResource = new IntegrationLambdaArn("integrationLambdaArnResource", IntegrationLambdaArnArgs.builder()
        .accountId("string")
        .lambdaArn("string")
        .build());
    
    integration_lambda_arn_resource = datadog.aws.IntegrationLambdaArn("integrationLambdaArnResource",
        account_id="string",
        lambda_arn="string")
    
    const integrationLambdaArnResource = new datadog.aws.IntegrationLambdaArn("integrationLambdaArnResource", {
        accountId: "string",
        lambdaArn: "string",
    });
    
    type: datadog:aws:IntegrationLambdaArn
    properties:
        accountId: string
        lambdaArn: string
    

    IntegrationLambdaArn Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The IntegrationLambdaArn resource accepts the following input properties:

    AccountId string
    Your AWS Account ID without dashes.
    LambdaArn string
    The ARN of the Datadog forwarder Lambda.
    AccountId string
    Your AWS Account ID without dashes.
    LambdaArn string
    The ARN of the Datadog forwarder Lambda.
    accountId String
    Your AWS Account ID without dashes.
    lambdaArn String
    The ARN of the Datadog forwarder Lambda.
    accountId string
    Your AWS Account ID without dashes.
    lambdaArn string
    The ARN of the Datadog forwarder Lambda.
    account_id str
    Your AWS Account ID without dashes.
    lambda_arn str
    The ARN of the Datadog forwarder Lambda.
    accountId String
    Your AWS Account ID without dashes.
    lambdaArn String
    The ARN of the Datadog forwarder Lambda.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IntegrationLambdaArn 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 IntegrationLambdaArn Resource

    Get an existing IntegrationLambdaArn 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?: IntegrationLambdaArnState, opts?: CustomResourceOptions): IntegrationLambdaArn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            lambda_arn: Optional[str] = None) -> IntegrationLambdaArn
    func GetIntegrationLambdaArn(ctx *Context, name string, id IDInput, state *IntegrationLambdaArnState, opts ...ResourceOption) (*IntegrationLambdaArn, error)
    public static IntegrationLambdaArn Get(string name, Input<string> id, IntegrationLambdaArnState? state, CustomResourceOptions? opts = null)
    public static IntegrationLambdaArn get(String name, Output<String> id, IntegrationLambdaArnState 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.
    LambdaArn string
    The ARN of the Datadog forwarder Lambda.
    AccountId string
    Your AWS Account ID without dashes.
    LambdaArn string
    The ARN of the Datadog forwarder Lambda.
    accountId String
    Your AWS Account ID without dashes.
    lambdaArn String
    The ARN of the Datadog forwarder Lambda.
    accountId string
    Your AWS Account ID without dashes.
    lambdaArn string
    The ARN of the Datadog forwarder Lambda.
    account_id str
    Your AWS Account ID without dashes.
    lambda_arn str
    The ARN of the Datadog forwarder Lambda.
    accountId String
    Your AWS Account ID without dashes.
    lambdaArn String
    The ARN of the Datadog forwarder Lambda.

    Import

    Amazon Web Services Lambda ARN integrations can be imported using their account_id and lambda_arn separated with a space ( ).

    $ pulumi import datadog:aws/integrationLambdaArn:IntegrationLambdaArn test "1234567890 arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder"
    

    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.28.1 published on Monday, Jun 24, 2024 by Pulumi