@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.
- package/dist/cjs/helpers/__tests__/extendDatadogRole.spec.d.ts +1 -0
- package/dist/cjs/helpers/extendDatadogRole.d.ts +1 -0
- package/dist/cjs/index.cjs +6 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/helpers/__tests__/extendDatadogRole.spec.d.ts +1 -0
- package/dist/esm/helpers/extendDatadogRole.d.ts +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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, {
|