# DistributionGrants

Collection of grant methods for a IDistributionRef.

- 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_cloudfront as cloudfront } from 'aws-cdk-lib';
import { aws_cloudfront as interfaces_cloudfront } from 'aws-cdk-lib/interfaces';

declare const distributionRef: interfaces_cloudfront.IDistributionRef;
const distributionGrants = cloudfront.DistributionGrants.fromDistribution(distributionRef);
```

## Methods

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

- `createInvalidation(grantee: IGrantable): Grant` — Grant to create invalidations for this bucket to an IAM principal (Role/Group/User).

- `fromDistribution(resource: IDistributionRef): DistributionGrants // chainable` (static) — Creates grants for DistributionGrants.
