@jaypie/constructs 1.2.67 → 1.2.68

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.
@@ -23,6 +23,7 @@ export interface ExtendDatadogRoleOptions {
23
23
  * If found, creates a custom policy with:
24
24
  * - budgets:ViewBudget
25
25
  * - logs:DescribeLogGroups
26
+ * - trustedadvisor:ListRecommendations
26
27
  *
27
28
  * @param scope - The construct scope
28
29
  * @param options - Configuration options
package/dist/esm/index.js CHANGED
@@ -429,6 +429,7 @@ function envHostname({ component, domain, env, subdomain, } = {}) {
429
429
  * If found, creates a custom policy with:
430
430
  * - budgets:ViewBudget
431
431
  * - logs:DescribeLogGroups
432
+ * - trustedadvisor:ListRecommendations
432
433
  *
433
434
  * @param scope - The construct scope
434
435
  * @param options - Configuration options
@@ -455,6 +456,11 @@ function extendDatadogRole(scope, options) {
455
456
  actions: ["logs:DescribeLogGroups"],
456
457
  resources: ["*"],
457
458
  }),
459
+ // Allow list trusted advisor recommendations
460
+ new PolicyStatement({
461
+ actions: ["trustedadvisor:ListRecommendations"],
462
+ resources: ["*"],
463
+ }),
458
464
  ];
459
465
  // Create the custom policy
460
466
  const datadogCustomPolicy = new Policy(scope, id, {