Datadog v4.18.1, May 23 23
Datadog v4.18.1, May 23 23
datadog.aws.IntegrationLogCollection
Explore with Pulumi AI
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
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 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.NewIntegrationLogCollection(ctx, "main", &aws.IntegrationLogCollectionArgs{
AccountId: pulumi.String("1234567890"),
Services: pulumi.StringArray{
pulumi.String("lambda"),
},
})
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.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) {
var main = new IntegrationLogCollection("main", IntegrationLogCollectionArgs.builder()
.accountId("1234567890")
.services("lambda")
.build());
}
}
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"])
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"],
});
resources:
# Create a new Datadog - Amazon Web Services integration log collection
main:
type: datadog:aws:IntegrationLogCollection
properties:
accountId: '1234567890'
services:
- lambda
Create IntegrationLogCollection Resource
new IntegrationLogCollection(name: string, args: IntegrationLogCollectionArgs, opts?: CustomResourceOptions);
@overload
def IntegrationLogCollection(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
services: Optional[Sequence[str]] = None)
@overload
def IntegrationLogCollection(resource_name: str,
args: IntegrationLogCollectionArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The IntegrationLogCollection resource accepts the following input properties:
- account_
id str Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the
access_key_id
here.- services Sequence[str]
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.
- account_
id str Your AWS Account ID without dashes. If your account is a GovCloud or China account, specify the
access_key_id
here.- services Sequence[str]
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
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
datadog
Terraform Provider.