Class ResourceWithPolicies
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.ResourceWithPolicies
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-23T18:58:20.391Z")
@Stability(Stable)
public class ResourceWithPolicies
extends software.amazon.jsii.JsiiObject
Utility class for discovering and managing resource policy traits.
This class provides methods to retrieve IResourceWithPolicyV2 instances from constructs, enabling resource-based policy management 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.*; ResourceWithPolicies resourceWithPolicies = new ResourceWithPolicies();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResourceWithPolicies(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedResourceWithPolicies(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IResourceWithPolicyV2of(IEnvironmentAware resource) Retrieve the IResourceWithPolicyV2 associated with a construct, if available.static voidregister(software.constructs.IConstruct scope, String cfnType, IResourcePolicyFactory 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
-
ResourceWithPolicies
protected ResourceWithPolicies(software.amazon.jsii.JsiiObjectRef objRef) -
ResourceWithPolicies
protected ResourceWithPolicies(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ResourceWithPolicies
@Stability(Stable) public ResourceWithPolicies()
-
-
Method Details
-
of
@Stability(Stable) @Nullable public static IResourceWithPolicyV2 of(@NotNull IEnvironmentAware resource) Retrieve the IResourceWithPolicyV2 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 IResourcePolicyFactory 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.
-