aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
31 lines (30 loc) • 922 B
TypeScript
import * as codecommit from "./codecommit.generated";
import * as iam from "../../aws-iam";
import * as cdk from "../../core/lib";
/**
* 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();
/**
* Grant the given identity custom permissions
*/
actions(grantee: iam.IGrantable, actions: Array<string>, options?: cdk.PermissionsOptions): iam.Grant;
/**
* 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;
}