Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-codecommit/lib/codecommit-grants.generated.d.ts
2026-05-06 18:55:16 -05:00

31 lines
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;
}