Interface ICodeInterpreterCustom

All Superinterfaces:
ICodeInterpreterCustomRef, IConnectable, software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IGrantable, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
ICodeInterpreterCustom.Jsii$Default
All Known Implementing Classes:
CodeInterpreterCustom, CodeInterpreterCustomBase, ICodeInterpreterCustom.Jsii$Proxy

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.424Z") @Stability(Stable) public interface ICodeInterpreterCustom extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable, IConnectable, ICodeInterpreterCustomRef
Interface for CodeInterpreterCustom resources.
  • Method Details

    • getCodeInterpreterArn

      @Stability(Stable) @NotNull String getCodeInterpreterArn()
      The ARN of the code interpreter resource.
    • getCodeInterpreterId

      @Stability(Stable) @NotNull String getCodeInterpreterId()
      The id of the code interpreter.
    • getExecutionRole

      @Stability(Stable) @NotNull IRole getExecutionRole()
      The IAM role that provides permissions for the code interpreter to access AWS services.
    • getCreatedAt

      @Stability(Stable) @Nullable default String getCreatedAt()
      Timestamp when the code interpreter was created.
    • getLastUpdatedAt

      @Stability(Stable) @Nullable default String getLastUpdatedAt()
      Timestamp when the code interpreter was last updated.
    • getStatus

      @Stability(Stable) @Nullable default String getStatus()
      The status of the code interpreter.
    • grant

      @Stability(Stable) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
      Grants IAM actions to the IAM Principal.

      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • grantRead

      @Stability(Stable) @NotNull Grant grantRead(@NotNull IGrantable grantee)
      Grants Get and List actions on the Code Interpreter.

      Parameters:
      grantee - This parameter is required.
    • grantUse

      @Stability(Stable) @NotNull Grant grantUse(@NotNull IGrantable grantee)
      Grants Invoke, Start, and Stop actions on the Code Interpreter.

      Parameters:
      grantee - This parameter is required.
    • metric

      @Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      Return the given named metric for this code interpreter.

      Parameters:
      metricName - This parameter is required.
      props -
    • metric

      @Stability(Stable) @NotNull Metric metric(@NotNull String metricName)
      Return the given named metric for this code interpreter.

      Parameters:
      metricName - This parameter is required.
    • metricErrorsForApiOperation

      @Stability(Stable) @NotNull Metric metricErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props)
      Return a metric containing the number of errors for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
      props -
    • metricErrorsForApiOperation

      @Stability(Stable) @NotNull Metric metricErrorsForApiOperation(@NotNull String operation)
      Return a metric containing the number of errors for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
    • metricForApiOperation

      @Stability(Stable) @NotNull Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation, @Nullable MetricOptions props)
      Return the given named metric related to the API operation performed on this code interpreter.

      Parameters:
      metricName - This parameter is required.
      operation - This parameter is required.
      props -
    • metricForApiOperation

      @Stability(Stable) @NotNull Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation)
      Return the given named metric related to the API operation performed on this code interpreter.

      Parameters:
      metricName - This parameter is required.
      operation - This parameter is required.
    • metricInvocationsForApiOperation

      @Stability(Stable) @NotNull Metric metricInvocationsForApiOperation(@NotNull String operation, @Nullable MetricOptions props)
      Return a metric containing the total number of API requests made for a specific code interpreter operation.

      Parameters:
      operation - This parameter is required.
      props -
    • metricInvocationsForApiOperation

      @Stability(Stable) @NotNull Metric metricInvocationsForApiOperation(@NotNull String operation)
      Return a metric containing the total number of API requests made for a specific code interpreter operation.

      Parameters:
      operation - This parameter is required.
    • metricLatencyForApiOperation

      @Stability(Stable) @NotNull Metric metricLatencyForApiOperation(@NotNull String operation, @Nullable MetricOptions props)
      Return a metric measuring the latency of a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
      props -
    • metricLatencyForApiOperation

      @Stability(Stable) @NotNull Metric metricLatencyForApiOperation(@NotNull String operation)
      Return a metric measuring the latency of a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
    • metricSessionDuration

      @Stability(Stable) @NotNull Metric metricSessionDuration(@Nullable MetricOptions props)
      Return a metric measuring the duration of code interpreter sessions.

      Parameters:
      props -
    • metricSessionDuration

      @Stability(Stable) @NotNull Metric metricSessionDuration()
      Return a metric measuring the duration of code interpreter sessions.
    • metricSystemErrorsForApiOperation

      @Stability(Stable) @NotNull Metric metricSystemErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props)
      Return a metric containing the number of system errors for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
      props -
    • metricSystemErrorsForApiOperation

      @Stability(Stable) @NotNull Metric metricSystemErrorsForApiOperation(@NotNull String operation)
      Return a metric containing the number of system errors for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
    • metricThrottlesForApiOperation

      @Stability(Stable) @NotNull Metric metricThrottlesForApiOperation(@NotNull String operation, @Nullable MetricOptions props)
      Return a metric containing the number of throttled requests for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
      props -
    • metricThrottlesForApiOperation

      @Stability(Stable) @NotNull Metric metricThrottlesForApiOperation(@NotNull String operation)
      Return a metric containing the number of throttled requests for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
    • metricUserErrorsForApiOperation

      @Stability(Stable) @NotNull Metric metricUserErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props)
      Return a metric containing the number of user errors for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.
      props -
    • metricUserErrorsForApiOperation

      @Stability(Stable) @NotNull Metric metricUserErrorsForApiOperation(@NotNull String operation)
      Return a metric containing the number of user errors for a specific API operation performed on this code interpreter.

      Parameters:
      operation - This parameter is required.