Class: AWSCDK::IAM::EncryptedResources

Inherits:
Jsii::Object
  • Object
show all
Defined in:
iam/encrypted_resources.rb

Overview

Utility 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.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEncryptedResources

Returns a new instance of EncryptedResources.



11
12
13
# File 'iam/encrypted_resources.rb', line 11

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.jsii_overridable_methodsObject



15
16
17
18
# File 'iam/encrypted_resources.rb', line 15

def self.jsii_overridable_methods
  {
  }
end

.of(resource) ⇒ AWSCDK::IAM::IEncryptedResource?

Retrieve the IEncryptedResource associated with a construct, if available.



24
25
26
27
# File 'iam/encrypted_resources.rb', line 24

def self.of(resource)
  Jsii::Type.check_type(resource, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLklFbnZpcm9ubWVudEF3YXJlIn0=")), "resource")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_iam.EncryptedResources", "of", [resource])
end

.register(scope, cfn_type, factory) ⇒ void

This method returns an undefined value.

Register a factory for a specific CloudFormation resource type and scope.

Parameters:



35
36
37
38
39
40
# File 'iam/encrypted_resources.rb', line 35

def self.register(scope, cfn_type, factory)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "scope")
  Jsii::Type.check_type(cfn_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cfnType")
  Jsii::Type.check_type(factory, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklFbmNyeXB0ZWRSZXNvdXJjZUZhY3RvcnkifQ==")), "factory")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_iam.EncryptedResources", "register", [scope, cfn_type, factory])
end