Class HttpStage
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apigatewayv2.HttpStage
- All Implemented Interfaces:
IResource,IHttpStage,IStage,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:06.568Z")
@Stability(Stable)
public class HttpStage
extends Resource
implements IHttpStage, IStage
Represents a stage where an instance of the API is deployed.
Example:
import software.amazon.awscdk.services.logs.*;
HttpApi api;
LogGroup logGroup;
HttpStage stage = HttpStage.Builder.create(this, "Stage")
.httpApi(api)
.accessLogSettings(Map.of(
"destination", new LogGroupLogDestination(logGroup)))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigatewayv2.IHttpStage
IHttpStage.Jsii$Default, IHttpStage.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigatewayv2.IStage
IStage.Jsii$Default, IStage.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedHttpStage(software.amazon.jsii.JsiiObjectRef objRef) HttpStage(software.constructs.Construct scope, String id, HttpStageProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IHttpStagefromHttpStageAttributes(software.constructs.Construct scope, String id, HttpStageAttributes attrs) Import an existing stage into this CDK app.getApi()The API this stage is associated to.protected IApiThe custom domain URL to this stage.The name of the stage;getUrl()The URL to this stage.Return the given named metric for this HTTP Api Gateway Stage.metric(String metricName, MetricOptions props) Return the given named metric for this HTTP Api Gateway Stage.Metric for the number of client-side errors captured in a given period.metricClientError(MetricOptions props) Metric for the number of client-side errors captured in a given period.Metric for the total number API requests in a given period.metricCount(MetricOptions props) Metric for the total number API requests in a given period.Metric for the amount of data processed in bytes.metricDataProcessed(MetricOptions props) Metric for the amount of data processed in bytes.Metric for the time between when API Gateway relays a request to the backend and when it receives a response from the backend.Metric for the time between when API Gateway relays a request to the backend and when it receives a response from the backend.The time between when API Gateway receives a request from a client and when it returns a response to the client.metricLatency(MetricOptions props) The time between when API Gateway receives a request from a client and when it returns a response to the client.Metric for the number of server-side errors captured in a given period.metricServerError(MetricOptions props) Metric for the number of server-side errors captured in a given period.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
HttpStage
protected HttpStage(software.amazon.jsii.JsiiObjectRef objRef) -
HttpStage
protected HttpStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpStage
@Stability(Stable) public HttpStage(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpStageProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromHttpStageAttributes
@Stability(Stable) @NotNull public static IHttpStage fromHttpStageAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpStageAttributes attrs) Import an existing stage into this CDK app.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this HTTP Api Gateway Stage. -
metric
Return the given named metric for this HTTP Api Gateway Stage. -
metricClientError
Metric for the number of client-side errors captured in a given period.- Specified by:
metricClientErrorin interfaceIHttpStage- Parameters:
props-
-
metricClientError
Metric for the number of client-side errors captured in a given period.- Specified by:
metricClientErrorin interfaceIHttpStage
-
metricCount
Metric for the total number API requests in a given period.- Specified by:
metricCountin interfaceIHttpStage- Parameters:
props-
-
metricCount
Metric for the total number API requests in a given period.- Specified by:
metricCountin interfaceIHttpStage
-
metricDataProcessed
Metric for the amount of data processed in bytes.- Specified by:
metricDataProcessedin interfaceIHttpStage- Parameters:
props-
-
metricDataProcessed
Metric for the amount of data processed in bytes.- Specified by:
metricDataProcessedin interfaceIHttpStage
-
metricIntegrationLatency
Metric for the time between when API Gateway relays a request to the backend and when it receives a response from the backend.- Specified by:
metricIntegrationLatencyin interfaceIHttpStage- Parameters:
props-
-
metricIntegrationLatency
Metric for the time between when API Gateway relays a request to the backend and when it receives a response from the backend.- Specified by:
metricIntegrationLatencyin interfaceIHttpStage
-
metricLatency
The time between when API Gateway receives a request from a client and when it returns a response to the client.The latency includes the integration latency and other API Gateway overhead.
- Specified by:
metricLatencyin interfaceIHttpStage- Parameters:
props-
-
metricLatency
The time between when API Gateway receives a request from a client and when it returns a response to the client.The latency includes the integration latency and other API Gateway overhead.
- Specified by:
metricLatencyin interfaceIHttpStage
-
metricServerError
Metric for the number of server-side errors captured in a given period.- Specified by:
metricServerErrorin interfaceIHttpStage- Parameters:
props-
-
metricServerError
Metric for the number of server-side errors captured in a given period.- Specified by:
metricServerErrorin interfaceIHttpStage
-
getApi
The API this stage is associated to.- Specified by:
getApiin interfaceIHttpStage
-
getBaseApi
-
getDomainUrl
The custom domain URL to this stage.- Specified by:
getDomainUrlin interfaceIHttpStage
-
getStageName
The name of the stage;its primary identifier.
- Specified by:
getStageNamein interfaceIStage
-
getUrl
The URL to this stage.
-