Interface IInstanceProfile

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IInstanceProfileRef, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IInstanceProfile.Jsii$Default
All Known Implementing Classes:
IInstanceProfile.Jsii$Proxy, InstanceProfile

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-05T22:26:37.907Z") @Stability(Stable) public interface IInstanceProfile extends software.amazon.jsii.JsiiSerializable, IResource, IInstanceProfileRef
Represents an IAM Instance Profile.
  • Method Details

    • getInstanceProfileArn

      @Stability(Stable) @NotNull String getInstanceProfileArn()
      The InstanceProfile's ARN.
    • getInstanceProfileName

      @Stability(Stable) @NotNull String getInstanceProfileName()
      The InstanceProfile's name.
    • getRole

      @Stability(Stable) @Nullable default IRole getRole()
      The role associated with the InstanceProfile.
    • 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