Skip to content
v2.275.0

Datadog Class ​

A Datadog destination for data from a Kinesis Data Firehose delivery stream.

Example ​

ts
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';

declare const apiKey: secretsmanager.Secret;
const datadogDestination = new firehose.Datadog({
  apiKey,
  endpoint: firehose.DatadogEndpoint.LOGS_US1,
});
python
import aws_cdk.aws_secretsmanager as secretsmanager

# api_key: secretsmanager.Secret

datadog_destination = firehose.Datadog(
    api_key=api_key,
    endpoint=firehose.DatadogEndpoint.LOGS_US1
)
java
import software.amazon.awscdk.services.secretsmanager.*;

Secret apiKey;

Datadog datadogDestination = Datadog.Builder.create()
        .apiKey(apiKey)
        .endpoint(DatadogEndpoint.LOGS_US1)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.SecretsManager;

Secret apiKey;

var datadogDestination = new Datadog(new DatadogProps {
    ApiKey = apiKey,
    Endpoint = DatadogEndpoint.LOGS_US1
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import secretsmanager "github.com/aws/aws-cdk-go/awscdk"

var apiKey Secret

datadogDestination := firehose.NewDatadog(&DatadogProps{
	ApiKey: ApiKey,
	Endpoint: firehose.DatadogEndpoint_LOGS_US1(),
})

Initializer ​

ts
new Datadog(props: DatadogProps)
python
Datadog(props: DatadogProps)
java
new Datadog(DatadogProps props)
csharp
new Datadog(DatadogProps props)
go
NewDatadog(Props DatadogProps)

Methods ​

bind(scope: Construct, _options: DestinationBindOptions): DestinationConfigdef bind(self, scope: Construct, _options: DestinationBindOptions) -> DestinationConfigpublic DestinationConfig bind(Construct scope, DestinationBindOptions _options)public DestinationConfig Bind(Construct scope, DestinationBindOptions _options)func Bind(Scope Construct, _options DestinationBindOptions) DestinationConfig#
Binds this destination to the Amazon Data Firehose delivery stream.

Implementers should use this method to bind resources to the stack and initialize values using the provided stream.