We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8092d55 commit 51f9d6fCopy full SHA for 51f9d6f
packages/@aws-cdk/aws-scheduler-targets-alpha/lib/inspector-start-assessment-run.ts
@@ -17,6 +17,8 @@ export class InspectorStartAssessmentRun extends ScheduleTargetBase implements I
17
protected addTargetActionToRole(role: IRole): void {
18
role.addToPrincipalPolicy(new PolicyStatement({
19
actions: ['inspector:StartAssessmentRun'],
20
+ // The wildcard is intentional here as Amazon Inspector does not support specifying a resource ARN in the Resource element of an IAM policy statement.
21
+ // See https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoninspector.html#amazoninspector-resources-for-iam-policies.
22
resources: ['*'],
23
}));
24
}
0 commit comments