Skip to content

Commit

Permalink
chore(release): 1.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lym953 committed Nov 15, 2024
1 parent 197f1f0 commit 0da7d5d
Show file tree
Hide file tree
Showing 33 changed files with 2,698 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.19.0](https://github.com/DataDog/datadog-cdk-constructs/compare/v2-1.18.0...v2-1.19.0) (2024-11-15)


### Features

* [Step Function] Set up logging ([#318](https://github.com/DataDog/datadog-cdk-constructs/issues/318)) ([49ae769](https://github.com/DataDog/datadog-cdk-constructs/commit/49ae76996a94585d0ff308ec41acf5c6e2947bb5))
* [Step Function] Subscribe forwarder to log group ([#319](https://github.com/DataDog/datadog-cdk-constructs/issues/319)) ([b91b796](https://github.com/DataDog/datadog-cdk-constructs/commit/b91b79690de4b7aa0f70d61211c62d8025fc1568))
* add skeleton of step function class and example stack ([#315](https://github.com/DataDog/datadog-cdk-constructs/issues/315)) ([225ad21](https://github.com/DataDog/datadog-cdk-constructs/commit/225ad21fae8f99aed3304eb9bf0442d53fe1c82e))
* Support StepFunction->Lambda trace merging ([#325](https://github.com/DataDog/datadog-cdk-constructs/issues/325)) ([cd49812](https://github.com/DataDog/datadog-cdk-constructs/commit/cd49812784c143572ee459f4d82dd2e8927b053e))
* Support StepFunction->StepFunction trace merging ([#326](https://github.com/DataDog/datadog-cdk-constructs/issues/326)) ([0fc4e7d](https://github.com/DataDog/datadog-cdk-constructs/commit/0fc4e7d886665bf167e5dfcbf597b545883978a8))
* update example code and doc to use DatadogLambda ([#289](https://github.com/DataDog/datadog-cdk-constructs/issues/289)) ([fbf5c43](https://github.com/DataDog/datadog-cdk-constructs/commit/fbf5c43bd72a4dc2193e2659e6b2bb133953ef46))

## [1.18.0](https://github.com/DataDog/datadog-cdk-constructs/compare/v2-1.17.0...v2-1.18.0) (2024-10-17)


Expand Down
205 changes: 205 additions & 0 deletions examples/step-functions-go-stack/ddcdkconstruct/Datadog.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
package ddcdkconstruct

import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct/jsii"

"github.com/aws/aws-cdk-go/awscdk/v2/awslogs"
"github.com/aws/constructs-go/constructs/v10"
)

// For backward compatibility.
//
// It's recommended to use DatadogLambda for
// users who want to add Datadog monitoring for Lambda functions.
type Datadog interface {
DatadogLambda
// The tree node.
Node() constructs.Node
Props() *DatadogLambdaProps
SetProps(val *DatadogLambdaProps)
Scope() constructs.Construct
SetScope(val constructs.Construct)
Transport() Transport
SetTransport(val Transport)
AddForwarderToNonLambdaLogGroups(logGroups *[]awslogs.ILogGroup)
AddGitCommitMetadata(lambdaFunctions *[]interface{}, gitCommitSha *string, gitRepoUrl *string)
AddLambdaFunctions(lambdaFunctions *[]interface{}, construct constructs.Construct)
// Returns a string representation of this construct.
ToString() *string
}

// The jsii proxy struct for Datadog
type jsiiProxy_Datadog struct {
jsiiProxy_DatadogLambda
}

func (j *jsiiProxy_Datadog) Node() constructs.Node {
var returns constructs.Node
_jsii_.Get(
j,
"node",
&returns,
)
return returns
}

func (j *jsiiProxy_Datadog) Props() *DatadogLambdaProps {
var returns *DatadogLambdaProps
_jsii_.Get(
j,
"props",
&returns,
)
return returns
}

func (j *jsiiProxy_Datadog) Scope() constructs.Construct {
var returns constructs.Construct
_jsii_.Get(
j,
"scope",
&returns,
)
return returns
}

func (j *jsiiProxy_Datadog) Transport() Transport {
var returns Transport
_jsii_.Get(
j,
"transport",
&returns,
)
return returns
}


func NewDatadog(scope constructs.Construct, id *string, props *DatadogProps) Datadog {
_init_.Initialize()

if err := validateNewDatadogParameters(scope, id, props); err != nil {
panic(err)
}
j := jsiiProxy_Datadog{}

_jsii_.Create(
"datadog-cdk-constructs-v2.Datadog",
[]interface{}{scope, id, props},
&j,
)

return &j
}

func NewDatadog_Override(d Datadog, scope constructs.Construct, id *string, props *DatadogProps) {
_init_.Initialize()

_jsii_.Create(
"datadog-cdk-constructs-v2.Datadog",
[]interface{}{scope, id, props},
d,
)
}

func (j *jsiiProxy_Datadog)SetProps(val *DatadogLambdaProps) {
if err := j.validateSetPropsParameters(val); err != nil {
panic(err)
}
_jsii_.Set(
j,
"props",
val,
)
}

func (j *jsiiProxy_Datadog)SetScope(val constructs.Construct) {
if err := j.validateSetScopeParameters(val); err != nil {
panic(err)
}
_jsii_.Set(
j,
"scope",
val,
)
}

func (j *jsiiProxy_Datadog)SetTransport(val Transport) {
if err := j.validateSetTransportParameters(val); err != nil {
panic(err)
}
_jsii_.Set(
j,
"transport",
val,
)
}

// Checks if `x` is a construct.
//
// Returns: true if `x` is an object created from a class which extends `Construct`.
// Deprecated: use `x instanceof Construct` instead.
func Datadog_IsConstruct(x interface{}) *bool {
_init_.Initialize()

if err := validateDatadog_IsConstructParameters(x); err != nil {
panic(err)
}
var returns *bool

_jsii_.StaticInvoke(
"datadog-cdk-constructs-v2.Datadog",
"isConstruct",
[]interface{}{x},
&returns,
)

return returns
}

func (d *jsiiProxy_Datadog) AddForwarderToNonLambdaLogGroups(logGroups *[]awslogs.ILogGroup) {
if err := d.validateAddForwarderToNonLambdaLogGroupsParameters(logGroups); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
d,
"addForwarderToNonLambdaLogGroups",
[]interface{}{logGroups},
)
}

func (d *jsiiProxy_Datadog) AddGitCommitMetadata(lambdaFunctions *[]interface{}, gitCommitSha *string, gitRepoUrl *string) {
if err := d.validateAddGitCommitMetadataParameters(lambdaFunctions); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
d,
"addGitCommitMetadata",
[]interface{}{lambdaFunctions, gitCommitSha, gitRepoUrl},
)
}

func (d *jsiiProxy_Datadog) AddLambdaFunctions(lambdaFunctions *[]interface{}, construct constructs.Construct) {
if err := d.validateAddLambdaFunctionsParameters(lambdaFunctions); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
d,
"addLambdaFunctions",
[]interface{}{lambdaFunctions, construct},
)
}

func (d *jsiiProxy_Datadog) ToString() *string {
var returns *string

_jsii_.Invoke(
d,
"toString",
nil, // no parameters
&returns,
)

return returns
}

Loading

0 comments on commit 0da7d5d

Please sign in to comment.