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
Copy file name to clipboardExpand all lines: src/index.ts
+8-15Lines changed: 8 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -634,10 +634,11 @@ function validateConfiguration(config: Configuration): void {
634
634
config.apiKey===undefined&&
635
635
process.env.DATADOG_API_KEY===undefined&&
636
636
config.apiKMSKey===undefined&&
637
-
config.apiKeySecretArn===undefined
637
+
config.apiKeySecretArn===undefined&&
638
+
config.apiKeySsmArn===undefined
638
639
){
639
640
thrownewError(
640
-
"The environment variable `DATADOG_API_KEY` or configuration variable `apiKMSKey`or `apiKeySecretArn` must be set because `addExtension` is set to true as default.",
641
+
"The environment variable `DATADOG_API_KEY` or configuration variable `apiKMSKey`, `apiKeySecretArn`, or `apiKeySsmArn` must be set because `addExtension` is set to true as default.",
641
642
);
642
643
}
643
644
}
@@ -656,18 +657,10 @@ function validateConfiguration(config: Configuration): void {
0 commit comments