You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current behavior? If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
when calling .addTargets() against an elbv2.ApplicationListener with a config of:
{ ...,
deregistrationDelay: cdk.Duration.seconds(5),
...
}
the method tries to call .toString() on the Duration object and fails with an error about using .toSecond, etc. instead.
What is the expected behavior (or behavior of feature suggested)?
.toString() should not be called against a Duration object. It results in a runtime error.
Please tell us about your environment:
CDK CLI Version: 0.36.0
Module Version: 0.36.0
OS: OSX Mojave
Language: all
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered:
Error: Argument to Intrinsic must be a plain value object, got () => {
throw new Error(`Duration.toString() was used, but .toSeconds, .toMinutes or .toDays should have been called instead`);
}
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
when calling .addTargets() against an elbv2.ApplicationListener with a config of:
{ ...,
deregistrationDelay: cdk.Duration.seconds(5),
...
}
the method tries to call .toString() on the Duration object and fails with an error about using .toSecond, etc. instead.
https://github.com/awslabs/aws-cdk/blob/master/packages/%40aws-cdk/aws-elasticloadbalancingv2/lib/shared/base-target-group.ts#L208
.toString() should not be called against a Duration object. It results in a runtime error.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: