Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(codebuild): accept IRole instead of Role #1781

Merged
merged 2 commits into from
Feb 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/@aws-cdk/aws-codebuild/lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface IProject extends cdk.IConstruct, events.IEventRuleTarget {
readonly projectName: string;

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

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

/** The IAM service Role of this Project. Undefined for imported Projects. */
public abstract readonly role?: iam.Role;
public abstract readonly role?: iam.IRole;

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

/**
* Encryption key to use to read and write artifacts
Expand Down Expand Up @@ -572,7 +572,7 @@ export class Project extends ProjectBase {
/**
* The IAM role for this project.
*/
public readonly role?: iam.Role;
public readonly role?: iam.IRole;

/**
* The ARN of the project.
Expand Down