Interface IResourceWithPolicyV2.Jsii$Default

All Superinterfaces:
IEnvironmentAware, IEnvironmentAware.Jsii$Default, IResourceWithPolicyV2, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IFileSystem.Jsii$Default, ILogGroup.Jsii$Default, IResourceWithPolicy.Jsii$Default
All Known Implementing Classes:
IFileSystem.Jsii$Proxy, ILogGroup.Jsii$Proxy, IResourceWithPolicy.Jsii$Proxy, IResourceWithPolicyV2.Jsii$Proxy
Enclosing interface:
IResourceWithPolicyV2

@Internal public static interface IResourceWithPolicyV2.Jsii$Default extends IResourceWithPolicyV2, IEnvironmentAware.Jsii$Default
Internal default implementation for IResourceWithPolicyV2.
  • Method Details

    • getEnv

      @Stability(Stable) @NotNull default 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
      Specified by:
      getEnv in interface IEnvironmentAware.Jsii$Default
    • addToResourcePolicy

      @Stability(Stable) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
      Add a statement to the resource's resource policy.

      Specified by:
      addToResourcePolicy in interface IResourceWithPolicyV2
      Parameters:
      statement - This parameter is required.