Class GrantableResources
Utility methods to check for specific types of grantable resources.
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GrantableResources : DeputyBase
Syntax (vb)
Public Class GrantableResources Inherits DeputyBase
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var grantableResources = new GrantableResources();
Synopsis
Constructors
| GrantableResources() | Utility methods to check for specific types of grantable resources. |
Methods
| IsEncryptedResource(IEnvironmentAware) | Whether this resource holds data that can be encrypted using a KMS key. |
| IsResourceWithPolicy(IEnvironmentAware) | Whether this resource admits a resource policy. |
Constructors
GrantableResources()
Utility methods to check for specific types of grantable resources.
public GrantableResources()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var grantableResources = new GrantableResources();
Methods
IsEncryptedResource(IEnvironmentAware)
Whether this resource holds data that can be encrypted using a KMS key.
public static bool IsEncryptedResource(IEnvironmentAware resource)
Parameters
- resource IEnvironmentAware
Returns
Remarks
ExampleMetadata: fixture=_generated
IsResourceWithPolicy(IEnvironmentAware)
Whether this resource admits a resource policy.
public static bool IsResourceWithPolicy(IEnvironmentAware resource)
Parameters
- resource IEnvironmentAware
Returns
Remarks
ExampleMetadata: fixture=_generated