Skip to content

Commit f08ca15

Browse files
authored
fix(codebuild): accept IRole instead of Role (#1781)
Fixes #1778.
1 parent f782958 commit f08ca15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@aws-cdk/aws-codebuild/lib/project.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface IProject extends cdk.IConstruct, events.IEventRuleTarget {
2727
readonly projectName: string;
2828

2929
/** The IAM service Role of this Project. Undefined for imported Projects. */
30-
readonly role?: iam.Role;
30+
readonly role?: iam.IRole;
3131

3232
/**
3333
* Convenience method for creating a new {@link PipelineBuildAction CodeBuild build Action}.
@@ -182,7 +182,7 @@ export abstract class ProjectBase extends cdk.Construct implements IProject {
182182
public abstract readonly projectName: string;
183183

184184
/** 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;
186186

187187
/** A role used by CloudWatch events to trigger a build */
188188
private eventsRole?: iam.Role;
@@ -460,7 +460,7 @@ export interface CommonProjectProps {
460460
* Service Role to assume while running the build.
461461
* If not specified, a role will be created.
462462
*/
463-
role?: iam.Role;
463+
role?: iam.IRole;
464464

465465
/**
466466
* Encryption key to use to read and write artifacts
@@ -572,7 +572,7 @@ export class Project extends ProjectBase {
572572
/**
573573
* The IAM role for this project.
574574
*/
575-
public readonly role?: iam.Role;
575+
public readonly role?: iam.IRole;
576576

577577
/**
578578
* The ARN of the project.

0 commit comments

Comments
 (0)