@Generated(value="jsii-pacmak/1.39.0 (build 8af72c2)", date="2021-10-13T21:02:01.235Z") @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.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected 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 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.