Class: AWSCDK::IAM::GrantableResources
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::IAM::GrantableResources
- Defined in:
- iam/grantable_resources.rb
Overview
Utility methods to check for specific types of grantable resources.
Class Method Summary collapse
-
.is_encrypted_resource(resource) ⇒ Boolean
Whether this resource holds data that can be encrypted using a KMS key.
-
.is_resource_with_policy(resource) ⇒ Boolean
Whether this resource admits a resource policy.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ GrantableResources
constructor
A new instance of GrantableResources.
Constructor Details
#initialize ⇒ GrantableResources
Returns a new instance of GrantableResources.
8 9 10 |
# File 'iam/grantable_resources.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.is_encrypted_resource(resource) ⇒ Boolean
Whether this resource holds data that can be encrypted using a KMS key.
21 22 23 24 |
# File 'iam/grantable_resources.rb', line 21 def self.is_encrypted_resource(resource) Jsii::Type.check_type(resource, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLklFbnZpcm9ubWVudEF3YXJlIn0=")), "resource") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_iam.GrantableResources", "isEncryptedResource", [resource]) end |
.is_resource_with_policy(resource) ⇒ Boolean
Whether this resource admits a resource policy.
30 31 32 33 |
# File 'iam/grantable_resources.rb', line 30 def self.is_resource_with_policy(resource) Jsii::Type.check_type(resource, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLklFbnZpcm9ubWVudEF3YXJlIn0=")), "resource") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_iam.GrantableResources", "isResourceWithPolicy", [resource]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 |
# File 'iam/grantable_resources.rb', line 12 def self.jsii_overridable_methods { } end |