Interface IResourceWithPolicyV2
- All Superinterfaces:
IEnvironmentAware,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IFileSystem,IFileSystem.Jsii$Default,ILogGroup,ILogGroup.Jsii$Default,IResourceWithPolicy,IResourceWithPolicy.Jsii$Default,IResourceWithPolicyV2.Jsii$Default
- All Known Implementing Classes:
EventBus,FileSystem,IFileSystem.Jsii$Proxy,ILogGroup.Jsii$Proxy,IResourceWithPolicy.Jsii$Proxy,IResourceWithPolicyV2.Jsii$Proxy,LambdaRestApi,LogGroup,RestApi,RestApiBase,SpecRestApi,StepFunctionsRestApi,Table,TableBase,TableBaseV2,TableV2
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:42.948Z")
@Stability(Stable)
public interface IResourceWithPolicyV2
extends software.amazon.jsii.JsiiSerializable, IEnvironmentAware
A resource with a resource policy that can be added to.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIResourceWithPolicyV2.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionaddToResourcePolicy(PolicyStatement statement) Add a statement to the resource's resource policy.Methods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
addToResourcePolicy
@Stability(Stable) @NotNull AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Add a statement to the resource's resource policy.- Parameters:
statement- This parameter is required.
-