Interface IApi
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,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.118.0 (build 02eec31)",
date="2025-11-10T13:39:57.577Z")
@Stability(Stable)
public interface IApi
extends software.amazon.jsii.JsiiSerializable, IResource
Represents a API Gateway HTTP/WebSocket API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIApi.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe default endpoint for an API.getApiId()The identifier of this API Gateway API.Return the given named metric for this Api Gateway.metric(String metricName, MetricOptions props) Return the given named metric for this Api Gateway.Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiEndpoint
The default endpoint for an API. -
getApiId
The identifier of this API Gateway API. -
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Api Gateway.Default: - average over 5 minutes
- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this Api Gateway.Default: - average over 5 minutes
- Parameters:
metricName- This parameter is required.
-