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.109.0 (build c221850)",
date="2025-03-19T18:01:28.711Z")
@Stability(Stable)
public class HttpStage
extends Resource
implements IHttpStage, IStage
Represents a stage where an instance of the API is deployed.
Example:
HttpApi api; HttpStage.Builder.create(this, "Stage") .httpApi(api) .stageName("beta") .description("My Stage") .build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.apigatewayv2.IHttpStage
IHttpStage.Jsii$Default, IHttpStage.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.apigatewayv2.IStage
IStage.Jsii$Default, IStage.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HttpStage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HttpStage
(software.amazon.jsii.JsiiObjectRef objRef) HttpStage
(software.constructs.Construct scope, String id, HttpStageProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IHttpStage
fromHttpStageAttributes
(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 IApi
The 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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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:
metricClientError
in interfaceIHttpStage
- Parameters:
props
-
-
metricClientError
Metric for the number of client-side errors captured in a given period.- Specified by:
metricClientError
in interfaceIHttpStage
-
metricCount
Metric for the total number API requests in a given period.- Specified by:
metricCount
in interfaceIHttpStage
- Parameters:
props
-
-
metricCount
Metric for the total number API requests in a given period.- Specified by:
metricCount
in interfaceIHttpStage
-
metricDataProcessed
Metric for the amount of data processed in bytes.- Specified by:
metricDataProcessed
in interfaceIHttpStage
- Parameters:
props
-
-
metricDataProcessed
Metric for the amount of data processed in bytes.- Specified by:
metricDataProcessed
in 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:
metricIntegrationLatency
in 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:
metricIntegrationLatency
in 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:
metricLatency
in 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:
metricLatency
in interfaceIHttpStage
-
metricServerError
Metric for the number of server-side errors captured in a given period.- Specified by:
metricServerError
in interfaceIHttpStage
- Parameters:
props
-
-
metricServerError
Metric for the number of server-side errors captured in a given period.- Specified by:
metricServerError
in interfaceIHttpStage
-
getApi
The API this stage is associated to.- Specified by:
getApi
in interfaceIHttpStage
-
getBaseApi
-
getDomainUrl
The custom domain URL to this stage.- Specified by:
getDomainUrl
in interfaceIHttpStage
-
getStageName
The name of the stage;its primary identifier.
- Specified by:
getStageName
in interfaceIStage
-
getUrl
The URL to this stage.
-