public static interface IHttpApi.Jsii$Default extends IHttpApi, IApi.Jsii$Default
IHttpApi
.IHttpApi.Jsii$Default, IHttpApi.Jsii$Proxy
Modifier and Type | Method and Description |
---|---|
default VpcLink |
addVpcLink(VpcLinkProps options)
(experimental) Add a new VpcLink.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default java.lang.String |
getApiEndpoint()
(experimental) The default endpoint for an API.
|
default java.lang.String |
getApiId()
(experimental) The identifier of this API Gateway API.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default java.lang.String |
getHttpApiId()
Deprecated.
- use apiId instead
|
default ConstructNode |
getNode()
The construct tree node for this construct.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default Metric |
metric(java.lang.String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Api Gateway.
|
default Metric |
metricClientError(MetricOptions props)
(experimental) Metric for the number of client-side errors captured in a given period.
|
default Metric |
metricCount(MetricOptions props)
(experimental) Metric for the total number API requests in a given period.
|
default Metric |
metricDataProcessed(MetricOptions props)
(experimental) Metric for the amount of data processed in bytes.
|
default 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.
|
default 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.
|
default Metric |
metricServerError(MetricOptions props)
(experimental) Metric for the number of server-side errors captured in a given period.
|
metricClientError, metricCount, metricDataProcessed, metricIntegrationLatency, metricLatency, metricServerError
default ConstructNode getNode()
getNode
in interface IApi.Jsii$Default
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IApi.Jsii$Default
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
default Stack getStack()
getStack
in interface IApi.Jsii$Default
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
default java.lang.String getApiEndpoint()
getApiEndpoint
in interface IApi
getApiEndpoint
in interface IApi.Jsii$Default
default java.lang.String getApiId()
getApiId
in interface IApi
getApiId
in interface IApi.Jsii$Default
@Deprecated default java.lang.String getHttpApiId()
getHttpApiId
in interface IHttpApi
default void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
applyRemovalPolicy
in interface IApi.Jsii$Default
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
policy
- This parameter is required.default Metric metric(java.lang.String metricName, MetricOptions props)
Default: - average over 5 minutes
metric
in interface IApi
metric
in interface IApi.Jsii$Default
metricName
- This parameter is required.props
- default VpcLink addVpcLink(VpcLinkProps options)
addVpcLink
in interface IHttpApi
options
- This parameter is required.default Metric metricClientError(MetricOptions props)
Default: - sum over 5 minutes
metricClientError
in interface IHttpApi
props
- default Metric metricCount(MetricOptions props)
Default: - SampleCount over 5 minutes
metricCount
in interface IHttpApi
props
- default Metric metricDataProcessed(MetricOptions props)
Default: - sum over 5 minutes
metricDataProcessed
in interface IHttpApi
props
- default Metric metricIntegrationLatency(MetricOptions props)
Default: - no statistic
metricIntegrationLatency
in interface IHttpApi
props
- default Metric metricLatency(MetricOptions props)
The latency includes the integration latency and other API Gateway overhead.
Default: - no statistic
metricLatency
in interface IHttpApi
props
- default Metric metricServerError(MetricOptions props)
Default: - sum over 5 minutes
metricServerError
in interface IHttpApi
props
-