@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:21.417Z") @Stability(value=Experimental) public class HttpApi extends Resource implements IHttpApi, IApi
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpApi.Builder
(experimental) A fluent builder for
HttpApi. |
software.amazon.jsii.JsiiObject.InitializationModeIHttpApi.Jsii$Default, IHttpApi.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
HttpApi(software.constructs.Construct scope,
String id) |
|
HttpApi(software.constructs.Construct scope,
String id,
HttpApiProps props) |
protected |
HttpApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpApi(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
List<HttpRoute> |
addRoutes(AddRoutesOptions options)
(experimental) Add multiple routes that uses the same configuration.
|
HttpStage |
addStage(String id,
HttpStageOptions options)
(experimental) Add a new stage.
|
VpcLink |
addVpcLink(VpcLinkProps options)
(experimental) Add a new VpcLink.
|
static IHttpApi |
fromHttpApiAttributes(software.constructs.Construct scope,
String id,
HttpApiAttributes attrs)
(experimental) Import an existing HTTP API into this CDK app.
|
String |
getApiEndpoint()
(experimental) Get the default endpoint for this API.
|
String |
getApiId()
(experimental) The identifier of this API Gateway API.
|
IStage |
getDefaultStage()
(experimental) The default stage of this API.
|
Boolean |
getDisableExecuteApiEndpoint()
(experimental) Specifies whether clients can invoke this HTTP API by using the default execute-api endpoint.
|
String |
getHttpApiId()
(experimental) The identifier of this API Gateway HTTP API.
|
String |
getHttpApiName()
(experimental) A human friendly name for this HTTP API.
|
String |
getUrl()
(experimental) Get the URL to the default stage of this 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 HttpApi(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpApi(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
HttpApiProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public HttpApi(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IHttpApi fromHttpApiAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpApiAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public List<HttpRoute> addRoutes(@NotNull AddRoutesOptions options)
The routes all go to the same path, but for different methods.
options - This parameter is required.@Stability(value=Experimental) @NotNull public HttpStage addStage(@NotNull String id, @NotNull HttpStageOptions options)
id - This parameter is required.options - This parameter is required.@Stability(value=Experimental) @NotNull public VpcLink addVpcLink(@NotNull VpcLinkProps options)
addVpcLink in interface IHttpApioptions - 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) @NotNull public String getHttpApiId()
getHttpApiId in interface IHttpApi@Stability(value=Experimental) @Nullable public IStage getDefaultStage()
@Stability(value=Experimental) @Nullable public Boolean getDisableExecuteApiEndpoint()
@Stability(value=Experimental) @Nullable public String getHttpApiName()
Note that this is different from httpApiId.
@Stability(value=Experimental) @Nullable public String getUrl()
Returns undefined if createDefaultStage is unset.
Copyright © 2021. All rights reserved.