class GrantableResources
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IAM.GrantableResources |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#GrantableResources |
Java | software.amazon.awscdk.services.iam.GrantableResources |
Python | aws_cdk.aws_iam.GrantableResources |
TypeScript (source) | aws-cdk-lib » aws_iam » GrantableResources |
Utility methods to check for specific types of grantable resources.
Example
// 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();
Initializer
new GrantableResources()
Methods
| Name | Description |
|---|---|
| static is | Whether this resource holds data that can be encrypted using a KMS key. |
| static is | Whether this resource admits a resource policy. |
static isEncryptedResource(resource)
public static isEncryptedResource(resource: IConstruct): boolean
Parameters
- resource
IConstruct
Returns
boolean
Whether this resource holds data that can be encrypted using a KMS key.
static isResourceWithPolicy(resource)
public static isResourceWithPolicy(resource: IEnvironmentAware): boolean
Parameters
- resource
IEnvironmentAware
Returns
boolean
Whether this resource admits a resource policy.

.NET
Go
Java
Python
TypeScript (