datadog logo
Datadog v4.14.0, Jan 27 23

datadog.aws.IntegrationLambdaArn

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

using System.Collections.Generic;
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("mainCollector", new()
    {
        AccountId = "1234567890",
        LambdaArn = "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 {
		_, err := aws.NewIntegrationLambdaArn(ctx, "mainCollector", &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
	})
}
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) {
        var mainCollector = new IntegrationLambdaArn("mainCollector", IntegrationLambdaArnArgs.builder()        
            .accountId("1234567890")
            .lambdaArn("arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder")
            .build());

    }
}
import pulumi
import pulumi_datadog as datadog

# Create a new Datadog - Amazon Web Services integration Lambda ARN
main_collector = datadog.aws.IntegrationLambdaArn("mainCollector",
    account_id="1234567890",
    lambda_arn="arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder")
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("mainCollector", {
    accountId: "1234567890",
    lambdaArn: "arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder",
});
resources:
  # Create a new Datadog - Amazon Web Services integration Lambda ARN
  mainCollector:
    type: datadog:aws:IntegrationLambdaArn
    properties:
      accountId: '1234567890'
      lambdaArn: arn:aws:lambda:us-east-1:1234567890:function:datadog-forwarder-Forwarder

Create IntegrationLambdaArn Resource

new IntegrationLambdaArn(name: string, args: IntegrationLambdaArnArgs, opts?: CustomResourceOptions);
@overload
def IntegrationLambdaArn(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         account_id: Optional[str] = None,
                         lambda_arn: Optional[str] = None)
@overload
def IntegrationLambdaArn(resource_name: str,
                         args: IntegrationLambdaArnArgs,
                         opts: Optional[ResourceOptions] = 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.

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.

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. If your account is a GovCloud or China account, specify the access_key_id here.

LambdaArn string

The ARN of the Datadog forwarder Lambda.

AccountId string

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

LambdaArn string

The ARN of the Datadog forwarder Lambda.

accountId String

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

lambdaArn String

The ARN of the Datadog forwarder Lambda.

accountId string

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

lambdaArn string

The ARN of the Datadog forwarder Lambda.

account_id str

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

lambda_arn str

The ARN of the Datadog forwarder Lambda.

accountId String

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

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. If your account is a GovCloud or China account, specify the access_key_id here.

LambdaArn string

The ARN of the Datadog forwarder Lambda.

AccountId string

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

LambdaArn string

The ARN of the Datadog forwarder Lambda.

accountId String

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

lambdaArn String

The ARN of the Datadog forwarder Lambda.

accountId string

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

lambdaArn string

The ARN of the Datadog forwarder Lambda.

account_id str

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

lambda_arn str

The ARN of the Datadog forwarder Lambda.

accountId String

Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the access_key_id here.

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"

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.