GrantableResources

class aws_cdk.aws_iam.GrantableResources

Bases: object

Utility methods to check for specific types of grantable resources.

ExampleMetadata:

fixture=_generated

Example:

# 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()

Static Methods

classmethod is_encrypted_resource(resource)

Whether this resource holds data that can be encrypted using a KMS key.

Parameters:

resource (IConstruct)

Return type:

bool

classmethod is_resource_with_policy(resource)

Whether this resource admits a resource policy.

Parameters:

resource (IEnvironmentAware)

Return type:

bool