All Superinterfaces:
IConstruct, software.constructs.IConstruct, IDependable, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IApi.Jsii$Default, IHttpApi, IHttpApi.Jsii$Default, IWebSocketApi, IWebSocketApi.Jsii$Default
All Known Implementing Classes:
HttpApi, IApi.Jsii$Proxy, IHttpApi.Jsii$Proxy, IWebSocketApi.Jsii$Proxy, WebSocketApi

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.295Z") @Stability(Experimental) public interface IApi extends software.amazon.jsii.JsiiSerializable, IResource
(experimental) Represents a API Gateway HTTP/WebSocket API.
  • Nested Class Summary

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

    Modifier and Type
    Method
    Description
    (experimental) The default endpoint for an API.
    (experimental) The identifier of this API Gateway API.
    metric(String metricName)
    (experimental) Return the given named metric for this Api Gateway.
    metric(String metricName, MetricOptions props)
    (experimental) Return the given named metric for this Api Gateway.

    Methods inherited from interface software.amazon.awscdk.core.IConstruct

    getNode

    Methods inherited from interface software.amazon.awscdk.core.IResource

    applyRemovalPolicy, getEnv, getStack

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getApiEndpoint

      @Stability(Experimental) @NotNull String getApiEndpoint()
      (experimental) The default endpoint for an API.
    • getApiId

      @Stability(Experimental) @NotNull String getApiId()
      (experimental) The identifier of this API Gateway API.
    • metric

      @Stability(Experimental) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      (experimental) Return the given named metric for this Api Gateway.

      Default: - average over 5 minutes

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

      @Stability(Experimental) @NotNull Metric metric(@NotNull String metricName)
      (experimental) Return the given named metric for this Api Gateway.

      Default: - average over 5 minutes

      Parameters:
      metricName - This parameter is required.