Class EncryptedResources
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.EncryptedResources
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:12.304Z")
@Stability(Stable)
public class EncryptedResources
extends software.amazon.jsii.JsiiObject
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.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.iam.*; EncryptedResources encryptedResources = new EncryptedResources();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEncryptedResources(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEncryptedResources(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IEncryptedResourceof(IEnvironmentAware resource) Retrieve the IEncryptedResource associated with a construct, if available.static voidregister(software.constructs.IConstruct scope, String cfnType, IEncryptedResourceFactory factory) Register a factory for a specific CloudFormation resource type and scope.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EncryptedResources
protected EncryptedResources(software.amazon.jsii.JsiiObjectRef objRef) -
EncryptedResources
protected EncryptedResources(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EncryptedResources
@Stability(Stable) public EncryptedResources()
-
-
Method Details
-
of
@Stability(Stable) @Nullable public static IEncryptedResource of(@NotNull IEnvironmentAware resource) Retrieve the IEncryptedResource associated with a construct, if available.- Parameters:
resource- This parameter is required.
-
register
@Stability(Stable) public static void register(@NotNull software.constructs.IConstruct scope, @NotNull String cfnType, @NotNull IEncryptedResourceFactory factory) Register a factory for a specific CloudFormation resource type and scope.- Parameters:
scope- This parameter is required.cfnType- This parameter is required.factory- This parameter is required.
-