aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
26 lines (25 loc) • 709 B
TypeScript
import * as codecommit from "./codecommit.generated";
import * as iam from "../../aws-iam";
/**
* Collection of grant methods for a IRepositoryRef
*/
export declare class RepositoryGrants {
/**
* Creates grants for RepositoryGrants
*/
static fromRepository(resource: codecommit.IRepositoryRef): RepositoryGrants;
protected readonly resource: codecommit.IRepositoryRef;
private constructor();
/**
* Grants pull permissions
*/
pull(grantee: iam.IGrantable): iam.Grant;
/**
* Grants pullPush permissions
*/
pullPush(grantee: iam.IGrantable): iam.Grant;
/**
* Grants read permissions
*/
read(grantee: iam.IGrantable): iam.Grant;
}