in cdk/lib/codeguru-profiler-infrastructure.ts [11:21]
constructor(scope: cdk.Construct, id: string, props: CodeGuruProfilerProps) {
super(scope, id);
const profilingGroup = new codeguruprofiler.ProfilingGroup(this, 'MyProfilingGroup', {
profilingGroupName: props.groupName,
computePlatform: codeguruprofiler.ComputePlatform.DEFAULT,
});
profilingGroup.grantPublish(props.role);
new cdk.CfnOutput(this, 'CodeGuruProfilingGroup', { value: profilingGroup.profilingGroupArn });
}