@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.032Z") @Stability(value=Experimental) public class HttpStage extends Resource implements IHttpStage, IStage
Example:
HttpApi api;
HttpStage.Builder.create(this, "Stage")
.httpApi(api)
.stageName("beta")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpStage.Builder
(experimental) A fluent builder for
HttpStage. |
software.amazon.jsii.JsiiObject.InitializationModeIHttpStage.Jsii$Default, IHttpStage.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
HttpStage(software.constructs.Construct scope,
String id,
HttpStageProps props) |
protected |
HttpStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpStage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IHttpStage |
fromHttpStageAttributes(software.constructs.Construct scope,
String id,
HttpStageAttributes attrs)
(experimental) Import an existing stage into this CDK app.
|
IHttpApi |
getApi()
(experimental) The API this stage is associated to.
|
protected IApi |
getBaseApi() |
String |
getDomainUrl()
(experimental) The custom domain URL to this stage.
|
String |
getStageName()
(experimental) The name of the stage;
|
String |
getUrl()
(experimental) The URL to this stage.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this HTTP Api Gateway Stage.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this HTTP Api Gateway Stage.
|
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, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected HttpStage(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpStage(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
HttpStageProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IHttpStage fromHttpStageAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpStageAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - 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 IHttpStageprops - @Stability(value=Experimental) @NotNull public Metric metricClientError()
metricClientError in interface IHttpStage@Stability(value=Experimental) @NotNull public Metric metricCount(@Nullable MetricOptions props)
metricCount in interface IHttpStageprops - @Stability(value=Experimental) @NotNull public Metric metricCount()
metricCount in interface IHttpStage@Stability(value=Experimental) @NotNull public Metric metricDataProcessed(@Nullable MetricOptions props)
metricDataProcessed in interface IHttpStageprops - @Stability(value=Experimental) @NotNull public Metric metricDataProcessed()
metricDataProcessed in interface IHttpStage@Stability(value=Experimental) @NotNull public Metric metricIntegrationLatency(@Nullable MetricOptions props)
metricIntegrationLatency in interface IHttpStageprops - @Stability(value=Experimental) @NotNull public Metric metricIntegrationLatency()
metricIntegrationLatency in interface IHttpStage@Stability(value=Experimental) @NotNull public Metric metricLatency(@Nullable MetricOptions props)
The latency includes the integration latency and other API Gateway overhead.
metricLatency in interface IHttpStageprops - @Stability(value=Experimental) @NotNull public Metric metricLatency()
The latency includes the integration latency and other API Gateway overhead.
metricLatency in interface IHttpStage@Stability(value=Experimental) @NotNull public Metric metricServerError(@Nullable MetricOptions props)
metricServerError in interface IHttpStageprops - @Stability(value=Experimental) @NotNull public Metric metricServerError()
metricServerError in interface IHttpStage@Stability(value=Experimental) @NotNull public IHttpApi getApi()
getApi in interface IHttpStage@Stability(value=Experimental) @NotNull protected IApi getBaseApi()
@Stability(value=Experimental) @NotNull public String getDomainUrl()
getDomainUrl in interface IHttpStage@Stability(value=Experimental) @NotNull public String getStageName()
its primary identifier.
getStageName in interface IStageCopyright © 2022. All rights reserved.