Interface IApi
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.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.104.0 (build e79254c)",
date="2024-11-27T16:50:52.466Z")
@Stability(Stable)
public interface IApi
extends software.amazon.jsii.JsiiSerializable, IResource
Represents a API Gateway HTTP/WebSocket API.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIApi
.static final class
A 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
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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.
-