@jaypie/constructs 1.1.47 → 1.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,7 +76,7 @@ function addDatadogLayers(lambdaFunction, options = {}) {
76
76
  Object.entries(datadogEnvVars).forEach(([key, value]) => {
77
77
  lambdaFunction.addEnvironment(key, value);
78
78
  });
79
- const datadogApiKeySecret = secretsmanager__namespace.Secret.fromSecretNameV2(lambdaFunction, "DatadogApiKey", resolvedDatadogApiKeyArn);
79
+ const datadogApiKeySecret = secretsmanager__namespace.Secret.fromSecretCompleteArn(lambdaFunction, "DatadogApiKey", resolvedDatadogApiKeyArn);
80
80
  const datadogLambda = new datadogCdkConstructsV2.DatadogLambda(lambdaFunction, "DatadogLambda", {
81
81
  apiKeySecret: datadogApiKeySecret, // apiKeySecret auto-grants secret access to the added lambdas
82
82
  nodeLayerVersion: cdk.CDK.DATADOG.LAYER.NODE,