Class: AWSCDK::IAM::GrantableResources

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

Overview

Utility methods to check for specific types of grantable resources.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGrantableResources

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.

Parameters:

Returns:

  • (Boolean)


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.

Parameters:

Returns:

  • (Boolean)


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_methodsObject



12
13
14
15
# File 'iam/grantable_resources.rb', line 12

def self.jsii_overridable_methods
  {
  }
end