IEncryptedResource

class aws_cdk.aws_iam.IEncryptedResource(*args, **kwargs)

Bases: IEnvironmentAware, Protocol

A resource that contains data that can be encrypted, using a KMS key.s.

Methods

grant_on_key(grantee, *actions)

Gives permissions to a grantable entity to perform actions on the encryption key.

Parameters:
Return type:

GrantOnKeyResult

Attributes

env

The environment this resource belongs to.

For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.