1. Packages
  2. Datadog Provider
  3. API Docs
  4. aws
  5. IntegrationLogCollection
Datadog v4.48.1 published on Saturday, Apr 5, 2025 by Pulumi

datadog.aws.IntegrationLogCollection

Explore with Pulumi AI

!>This resource is deprecated - use the datadog.aws.IntegrationAccount resource instead.

Provides a Datadog - Amazon Web Services integration log collection resource. This can be used to manage which AWS services logs are collected from for an account.

Example Usage

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

// Create a new Datadog - Amazon Web Services integration log collection
const main = new datadog.aws.IntegrationLogCollection("main", {
    accountId: "1234567890",
    services: ["lambda"],
});
Copy
import pulumi
import pulumi_datadog as datadog

# Create a new Datadog - Amazon Web Services integration log collection
main = datadog.aws.IntegrationLogCollection("main",
    account_id="1234567890",
    services=["lambda"])
Copy
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 log collection
		_, err := aws.NewIntegrationLogCollection(ctx, "main", &aws.IntegrationLogCollectionArgs{
			AccountId: pulumi.String("1234567890"),
			Services: pulumi.StringArray{
				pulumi.String("lambda"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 log collection
    var main = new Datadog.Aws.IntegrationLogCollection("main", new()
    {
        AccountId = "1234567890",
        Services = new[]
        {
            "lambda",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.aws.IntegrationLogCollection;
import com.pulumi.datadog.aws.IntegrationLogCollectionArgs;
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 log collection
        var main = new IntegrationLogCollection("main", IntegrationLogCollectionArgs.builder()
            .accountId("1234567890")
            .services("lambda")
            .build());

    }
}
Copy
resources:
  # Create a new Datadog - Amazon Web Services integration log collection
  main:
    type: datadog:aws:IntegrationLogCollection
    properties:
      accountId: '1234567890'
      services:
        - lambda
Copy

Create IntegrationLogCollection Resource

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

Constructor syntax

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

@overload
def IntegrationLogCollection(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_id: Optional[str] = None,
                             services: Optional[Sequence[str]] = None)
func NewIntegrationLogCollection(ctx *Context, name string, args IntegrationLogCollectionArgs, opts ...ResourceOption) (*IntegrationLogCollection, error)
public IntegrationLogCollection(string name, IntegrationLogCollectionArgs args, CustomResourceOptions? opts = null)
public IntegrationLogCollection(String name, IntegrationLogCollectionArgs args)
public IntegrationLogCollection(String name, IntegrationLogCollectionArgs args, CustomResourceOptions options)
type: datadog:aws:IntegrationLogCollection
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. IntegrationLogCollectionArgs
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. IntegrationLogCollectionArgs
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. IntegrationLogCollectionArgs
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. IntegrationLogCollectionArgs
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. IntegrationLogCollectionArgs
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 integrationLogCollectionResource = new Datadog.Aws.IntegrationLogCollection("integrationLogCollectionResource", new()
{
    AccountId = "string",
    Services = new[]
    {
        "string",
    },
});
Copy
example, err := aws.NewIntegrationLogCollection(ctx, "integrationLogCollectionResource", &aws.IntegrationLogCollectionArgs{
	AccountId: pulumi.String("string"),
	Services: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var integrationLogCollectionResource = new IntegrationLogCollection("integrationLogCollectionResource", IntegrationLogCollectionArgs.builder()
    .accountId("string")
    .services("string")
    .build());
Copy
integration_log_collection_resource = datadog.aws.IntegrationLogCollection("integrationLogCollectionResource",
    account_id="string",
    services=["string"])
Copy
const integrationLogCollectionResource = new datadog.aws.IntegrationLogCollection("integrationLogCollectionResource", {
    accountId: "string",
    services: ["string"],
});
Copy
type: datadog:aws:IntegrationLogCollection
properties:
    accountId: string
    services:
        - string
Copy

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

AccountId
This property is required.
Changes to this property will trigger replacement.
string
Your AWS Account ID without dashes.
Services This property is required. List<string>
A list of services to collect logs from. See the api docs for more details on which services are supported.
AccountId
This property is required.
Changes to this property will trigger replacement.
string
Your AWS Account ID without dashes.
Services This property is required. []string
A list of services to collect logs from. See the api docs for more details on which services are supported.
accountId
This property is required.
Changes to this property will trigger replacement.
String
Your AWS Account ID without dashes.
services This property is required. List<String>
A list of services to collect logs from. See the api docs for more details on which services are supported.
accountId
This property is required.
Changes to this property will trigger replacement.
string
Your AWS Account ID without dashes.
services This property is required. string[]
A list of services to collect logs from. See the api docs for more details on which services are supported.
account_id
This property is required.
Changes to this property will trigger replacement.
str
Your AWS Account ID without dashes.
services This property is required. Sequence[str]
A list of services to collect logs from. See the api docs for more details on which services are supported.
accountId
This property is required.
Changes to this property will trigger replacement.
String
Your AWS Account ID without dashes.
services This property is required. List<String>
A list of services to collect logs from. See the api docs for more details on which services are supported.

Outputs

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

Get an existing IntegrationLogCollection 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?: IntegrationLogCollectionState, opts?: CustomResourceOptions): IntegrationLogCollection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        services: Optional[Sequence[str]] = None) -> IntegrationLogCollection
func GetIntegrationLogCollection(ctx *Context, name string, id IDInput, state *IntegrationLogCollectionState, opts ...ResourceOption) (*IntegrationLogCollection, error)
public static IntegrationLogCollection Get(string name, Input<string> id, IntegrationLogCollectionState? state, CustomResourceOptions? opts = null)
public static IntegrationLogCollection get(String name, Output<String> id, IntegrationLogCollectionState state, CustomResourceOptions options)
resources:  _:    type: datadog:aws:IntegrationLogCollection    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:
AccountId Changes to this property will trigger replacement. string
Your AWS Account ID without dashes.
Services List<string>
A list of services to collect logs from. See the api docs for more details on which services are supported.
AccountId Changes to this property will trigger replacement. string
Your AWS Account ID without dashes.
Services []string
A list of services to collect logs from. See the api docs for more details on which services are supported.
accountId Changes to this property will trigger replacement. String
Your AWS Account ID without dashes.
services List<String>
A list of services to collect logs from. See the api docs for more details on which services are supported.
accountId Changes to this property will trigger replacement. string
Your AWS Account ID without dashes.
services string[]
A list of services to collect logs from. See the api docs for more details on which services are supported.
account_id Changes to this property will trigger replacement. str
Your AWS Account ID without dashes.
services Sequence[str]
A list of services to collect logs from. See the api docs for more details on which services are supported.
accountId Changes to this property will trigger replacement. String
Your AWS Account ID without dashes.
services List<String>
A list of services to collect logs from. See the api docs for more details on which services are supported.

Import

Amazon Web Services log collection integrations can be imported using the account ID.

$ pulumi import datadog:aws/integrationLogCollection:IntegrationLogCollection test 1234567890
Copy

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.