@@ -27,7 +27,7 @@ export interface IProject extends cdk.IConstruct, events.IEventRuleTarget {
27
27
readonly projectName : string ;
28
28
29
29
/** The IAM service Role of this Project. Undefined for imported Projects. */
30
- readonly role ?: iam . Role ;
30
+ readonly role ?: iam . IRole ;
31
31
32
32
/**
33
33
* Convenience method for creating a new {@link PipelineBuildAction CodeBuild build Action}.
@@ -182,7 +182,7 @@ export abstract class ProjectBase extends cdk.Construct implements IProject {
182
182
public abstract readonly projectName : string ;
183
183
184
184
/** The IAM service Role of this Project. Undefined for imported Projects. */
185
- public abstract readonly role ?: iam . Role ;
185
+ public abstract readonly role ?: iam . IRole ;
186
186
187
187
/** A role used by CloudWatch events to trigger a build */
188
188
private eventsRole ?: iam . Role ;
@@ -460,7 +460,7 @@ export interface CommonProjectProps {
460
460
* Service Role to assume while running the build.
461
461
* If not specified, a role will be created.
462
462
*/
463
- role ?: iam . Role ;
463
+ role ?: iam . IRole ;
464
464
465
465
/**
466
466
* Encryption key to use to read and write artifacts
@@ -572,7 +572,7 @@ export class Project extends ProjectBase {
572
572
/**
573
573
* The IAM role for this project.
574
574
*/
575
- public readonly role ?: iam . Role ;
575
+ public readonly role ?: iam . IRole ;
576
576
577
577
/**
578
578
* The ARN of the project.
0 commit comments