Skip to content

Commit

Permalink
feat: update example code and doc to use DatadogLambda
Browse files Browse the repository at this point in the history
  • Loading branch information
lym953 committed Oct 16, 2024
1 parent a5c1c80 commit 1fe6976
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ Add this to your CDK stack:
#### TypeScript

```typescript
import { Datadog } from "datadog-cdk-constructs-v2";
import { DatadogLambda } from "datadog-cdk-constructs-v2";

const datadog = new Datadog(this, "Datadog", {
const datadog = new DatadogLambda(this, "Datadog", {
nodeLayerVersion: <LAYER_VERSION>,
pythonLayerVersion: <LAYER_VERSION>,
javaLayerVersion: <LAYER_VERSION>,
Expand Down Expand Up @@ -120,10 +120,10 @@ datadog.addForwarderToNonLambdaLogGroups([<LOG_GROUPS>])
import (
"github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct"
)
datadog := ddcdkconstruct.NewDatadog(
datadog := ddcdkconstruct.NewDatadogLambda(
stack,
jsii.String("Datadog"),
&ddcdkconstruct.DatadogProps{
&ddcdkconstruct.DatadogLambdaProps{
NodeLayerVersion: jsii.Number(<LAYER_VERSION>),
AddLayers: jsii.Bool(<BOOLEAN>),
Site: jsii.String(<SITE>),
Expand Down

0 comments on commit 1fe6976

Please sign in to comment.