# PermissionsOptions

Options for configuring permissions in the `<Resource>.actions()` method.

Used as argument in: [ApiKeyGrants.actions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.ApiKeyGrants.html#actions), ChannelGrants.actions (@aws-cdk/aws-medialive-alpha), ChannelGrants.actions (@aws-cdk/aws-mediapackagev2-alpha), ConsumableResourceGrants.actions, DeliveryStreamGrants.actions, DistributionGrants.actions, DomainGrants.actions (aws_elasticsearch), DomainGrants.actions (aws_opensearchservice), EventBusGrants.actions, FlowGrants.actions, KnowledgeBaseGrants.actions, LogGroupGrants.actions, ProfilingGroupGrants.actions, RepositoryGrants.actions, RouterInputGrants.actions, ServerlessCacheGrants.actions, VirtualGatewayGrants.actions, VirtualNodeGrants.actions

- Source: [`core/lib/grants.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/grants.ts#L4)
- Type last changed: v2.244.0 · 19 Mar 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const permissionsOptions: cdk.PermissionsOptions = {
  resourceArns: ['resourceArns'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

permissions_options = cdk.PermissionsOptions(
    resource_arns=["resourceArns"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

PermissionsOptions permissionsOptions = PermissionsOptions.builder()
        .resourceArns(List.of("resourceArns"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var permissionsOptions = new PermissionsOptions {
    ResourceArns = new [] { "resourceArns" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

permissionsOptions := &PermissionsOptions{
	ResourceArns: []*string{
		jsii.String("resourceArns"),
	},
}
```

## Properties

- `resourceArns`: string[] — The ARNs of the resources to grant permissions on.

  **Default:** The ARN of the resource associated with the grant is used.
