EncryptedResources
- class aws_cdk.aws_iam.EncryptedResources
Bases:
objectUtility class for discovering and registering encrypted resource traits.
This class provides methods to retrieve IEncryptedResource instances from constructs, enabling automatic KMS key permission grants during IAM grant operations.
- 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 encrypted_resources = iam.EncryptedResources()
Static Methods
- classmethod of(resource)
Retrieve the IEncryptedResource associated with a construct, if available.
- Parameters:
resource (
IEnvironmentAware)- Return type:
Optional[IEncryptedResource]
- classmethod register(scope, cfn_type, factory)
Register a factory for a specific CloudFormation resource type and scope.
- Parameters:
scope (
IConstruct)cfn_type (
str)factory (
IEncryptedResourceFactory)
- Return type:
None