# RepositoryGrants

Collection of grant methods for a IRepositoryRef.

- Source: Generated code
- Type last changed: v2.244.0 · 19 Mar 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codecommit as codecommit } from 'aws-cdk-lib';
import { aws_codecommit as interfaces_codecommit } from 'aws-cdk-lib/interfaces';

declare const repositoryRef: interfaces_codecommit.IRepositoryRef;
const repositoryGrants = codecommit.RepositoryGrants.fromRepository(repositoryRef);
```

## Methods

- `actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grant` — Grant the given identity custom permissions.

- `fromRepository(resource: IRepositoryRef): RepositoryGrants // chainable` (static) — Creates grants for RepositoryGrants.

- `pull(grantee: IGrantable): Grant` — Grants pull permissions.

- `pullPush(grantee: IGrantable): Grant` — Grants pullPush permissions.

- `read(grantee: IGrantable): Grant` — Grants read permissions.
