Interface IPolicy

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IPolicyRef, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IPolicy.Jsii$Default
All Known Implementing Classes:
IPolicy.Jsii$Proxy, Policy

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-12T17:54:14.867Z") @Stability(Stable) public interface IPolicy extends software.amazon.jsii.JsiiSerializable, IResource, IPolicyRef
Represents an IAM Policy.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for IPolicy.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    The environment this resource belongs to.
    software.constructs.Node
    The tree node.
    The name of this policy.

    Methods inherited from interface software.amazon.awscdk.interfaces.iam.IPolicyRef

    getPolicyRef

    Methods inherited from interface software.amazon.awscdk.IResource

    applyRemovalPolicy, getStack

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getPolicyName

      @Stability(Stable) @NotNull String getPolicyName()
      The name of this policy.
    • getNode

      @Stability(Stable) @NotNull software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
    • getEnv

      @Stability(Stable) @NotNull ResourceEnvironment getEnv()
      The environment this resource belongs to.

      For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

      For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

      Specified by:
      getEnv in interface IEnvironmentAware