# CommonGrantOptions

Basic options for a grant operation.

- Source: [`aws-iam/lib/grant.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-iam/lib/grant.ts#L18)
- Type last changed: v2.57.0 · 27 Dec 2022

## Example

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

declare const conditions: any;
declare const grantable: iam.IGrantable;
const commonGrantOptions: iam.CommonGrantOptions = {
  actions: ['actions'],
  grantee: grantable,
  resourceArns: ['resourceArns'],

  // the properties below are optional
  conditions: {
    conditionsKey: {
      conditionsKey: conditions,
    },
  },
};
```

## Properties

- `actions`: string[] (required) — The actions to grant.

- `conditions`: { [key: string]: { [key: string]: any } } — Any conditions to attach to the grant.

  **Default:** No conditions

- `grantee`: [IGrantable](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IGrantable.html) (required) — The principal to grant to.

  **Default:** if principal is undefined, no work is done.

- `resourceArns`: string[] (required) — The resource ARNs to grant to.
