@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:21.443Z") @Stability(value=Experimental) public class WebSocketApi extends Resource implements IWebSocketApi, IApi
| Modifier and Type | Class and Description |
|---|---|
static class |
WebSocketApi.Builder
(experimental) A fluent builder for
WebSocketApi. |
software.amazon.jsii.JsiiObject.InitializationModeIWebSocketApi.Jsii$Default, IWebSocketApi.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
WebSocketApi(software.constructs.Construct scope,
String id) |
|
WebSocketApi(software.constructs.Construct scope,
String id,
WebSocketApiProps props) |
protected |
WebSocketApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
WebSocketApi(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
WebSocketRoute |
addRoute(String routeKey,
WebSocketRouteOptions options)
(experimental) Add a new route.
|
String |
getApiEndpoint()
(experimental) The default endpoint for an API.
|
String |
getApiId()
(experimental) The identifier of this API Gateway API.
|
String |
getWebSocketApiName()
(experimental) A human friendly name for this WebSocket API.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this Api Gateway.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Api Gateway.
|
Metric |
metricClientError()
(experimental) Metric for the number of client-side errors captured in a given period.
|
Metric |
metricClientError(MetricOptions props)
(experimental) Metric for the number of client-side errors captured in a given period.
|
Metric |
metricCount()
(experimental) Metric for the total number API requests in a given period.
|
Metric |
metricCount(MetricOptions props)
(experimental) Metric for the total number API requests in a given period.
|
Metric |
metricDataProcessed()
(experimental) Metric for the amount of data processed in bytes.
|
Metric |
metricDataProcessed(MetricOptions props)
(experimental) Metric for the amount of data processed in bytes.
|
Metric |
metricIntegrationLatency()
(experimental) Metric for the time between when API Gateway relays a request to the backend and when it receives a response from the backend.
|
Metric |
metricIntegrationLatency(MetricOptions props)
(experimental) Metric for the time between when API Gateway relays a request to the backend and when it receives a response from the backend.
|
Metric |
metricLatency()
(experimental) The time between when API Gateway receives a request from a client and when it returns a response to the client.
|
Metric |
metricLatency(MetricOptions props)
(experimental) The time between when API Gateway receives a request from a client and when it returns a response to the client.
|
Metric |
metricServerError()
(experimental) Metric for the number of server-side errors captured in a given period.
|
Metric |
metricServerError(MetricOptions props)
(experimental) Metric for the number of server-side errors captured in a given period.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected WebSocketApi(software.amazon.jsii.JsiiObjectRef objRef)
protected WebSocketApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public WebSocketApi(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
WebSocketApiProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public WebSocketApi(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public WebSocketRoute addRoute(@NotNull String routeKey, @NotNull WebSocketRouteOptions options)
routeKey - This parameter is required.options - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
@Stability(value=Experimental) @NotNull public Metric metricClientError(@Nullable MetricOptions props)
metricClientError in interface IApiprops - @Stability(value=Experimental) @NotNull public Metric metricClientError()
metricClientError in interface IApi@Stability(value=Experimental) @NotNull public Metric metricCount(@Nullable MetricOptions props)
metricCount in interface IApiprops - @Stability(value=Experimental) @NotNull public Metric metricCount()
metricCount in interface IApi@Stability(value=Experimental) @NotNull public Metric metricDataProcessed(@Nullable MetricOptions props)
metricDataProcessed in interface IApiprops - @Stability(value=Experimental) @NotNull public Metric metricDataProcessed()
metricDataProcessed in interface IApi@Stability(value=Experimental) @NotNull public Metric metricIntegrationLatency(@Nullable MetricOptions props)
metricIntegrationLatency in interface IApiprops - @Stability(value=Experimental) @NotNull public Metric metricIntegrationLatency()
metricIntegrationLatency in interface IApi@Stability(value=Experimental) @NotNull public Metric metricLatency(@Nullable MetricOptions props)
The latency includes the integration latency and other API Gateway overhead.
metricLatency in interface IApiprops - @Stability(value=Experimental) @NotNull public Metric metricLatency()
The latency includes the integration latency and other API Gateway overhead.
metricLatency in interface IApi@Stability(value=Experimental) @NotNull public Metric metricServerError(@Nullable MetricOptions props)
metricServerError in interface IApiprops - @Stability(value=Experimental) @NotNull public Metric metricServerError()
metricServerError in interface IApi@Stability(value=Experimental) @NotNull public String getApiEndpoint()
getApiEndpoint in interface IApi@Stability(value=Experimental) @NotNull public String getApiId()
@Stability(value=Experimental) @Nullable public String getWebSocketApiName()
Note that this is different from webSocketApiId.
Copyright © 2021. All rights reserved.