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

datadog.aws.IntegrationLogCollection

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 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"],
    });
    
    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"])
    
    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
    	})
    }
    
    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",
            },
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      # Create a new Datadog - Amazon Web Services integration log collection
      main:
        type: datadog:aws:IntegrationLogCollection
        properties:
          accountId: '1234567890'
          services:
            - lambda
    

    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 string
    The unique name of the resource.
    args IntegrationLogCollectionArgs
    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 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 string
    The unique name of the resource.
    args IntegrationLogCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationLogCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
        },
    });
    
    example, err := aws.NewIntegrationLogCollection(ctx, "integrationLogCollectionResource", &aws.IntegrationLogCollectionArgs{
    	AccountId: pulumi.String("string"),
    	Services: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var integrationLogCollectionResource = new IntegrationLogCollection("integrationLogCollectionResource", IntegrationLogCollectionArgs.builder()
        .accountId("string")
        .services("string")
        .build());
    
    integration_log_collection_resource = datadog.aws.IntegrationLogCollection("integrationLogCollectionResource",
        account_id="string",
        services=["string"])
    
    const integrationLogCollectionResource = new datadog.aws.IntegrationLogCollection("integrationLogCollectionResource", {
        accountId: "string",
        services: ["string"],
    });
    
    type: datadog:aws:IntegrationLogCollection
    properties:
        accountId: string
        services:
            - string
    

    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 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 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 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 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 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 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.

    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)
    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.
    Services List<string>
    A list of services to collect logs from. See the api docs for more details on which services are supported.
    AccountId 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 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 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 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 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
    

    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