# GrantableResources

Utility methods to check for specific types of grantable resources.

- Source: [`aws-iam/lib/grant.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-iam/lib/grant.ts#L571)
- Type last changed: v2.237.0 · 2 Feb 2026

## Example

TypeScript:

```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';
const grantableResources = new iam.GrantableResources();
```

Python:

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

grantable_resources = iam.GrantableResources()
```

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.services.iam.*;

GrantableResources grantableResources = new GrantableResources();
```

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.AWS.IAM;

var grantableResources = new GrantableResources();
```

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 "github.com/aws/aws-cdk-go/awscdk"

grantableResources := awscdk.Aws_iam.NewGrantableResources()
```

## Initializer

TypeScript:

```ts
new GrantableResources()
```

Python:

```python
GrantableResources()
```

Java:

```java
new GrantableResources()
```

C# / .NET:

```csharp
new GrantableResources()
```

Golang:

```go
NewGrantableResources()
```

## Methods

- `isEncryptedResource(resource: IEnvironmentAware): boolean` (static) — Whether this resource holds data that can be encrypted using a KMS key.

- `isResourceWithPolicy(resource: IEnvironmentAware): boolean` (static) — Whether this resource admits a resource policy.
