@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.084Z") @Stability(value=Experimental) public abstract class RestApiBase extends Resource implements IRestApi
software.amazon.jsii.JsiiObject.InitializationModeIRestApi.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
RestApiBase(software.constructs.Construct scope,
String id) |
protected |
RestApiBase(software.constructs.Construct scope,
String id,
RestApiBaseProps props) |
protected |
RestApiBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
RestApiBase(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IApiKey |
addApiKey(String id)
(experimental) Add an ApiKey.
|
IApiKey |
addApiKey(String id,
ApiKeyOptions options)
(experimental) Add an ApiKey.
|
DomainName |
addDomainName(String id,
DomainNameOptions options)
(experimental) Defines an API Gateway domain name and maps it to this API.
|
GatewayResponse |
addGatewayResponse(String id,
GatewayResponseOptions options)
(experimental) Adds a new gateway response.
|
UsagePlan |
addUsagePlan(String id)
(experimental) Adds a usage plan.
|
UsagePlan |
addUsagePlan(String id,
UsagePlanProps props)
(experimental) Adds a usage plan.
|
String |
arnForExecuteApi()
(experimental) Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method)
(experimental) Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method,
String path)
(experimental) Gets the "execute-api" ARN.
|
String |
arnForExecuteApi(String method,
String path,
String stage)
(experimental) Gets the "execute-api" ARN.
|
Stage |
getDeploymentStage()
(experimental) API Gateway stage that points to the latest deployment (if defined).
|
DomainName |
getDomainName()
(experimental) The first domain name mapped to this API, if defined through the `domainName` configuration prop, or added via `addDomainName`.
|
Deployment |
getLatestDeployment()
(experimental) API Gateway deployment that represents the latest changes of the API.
|
abstract String |
getRestApiId()
(experimental) The ID of this API Gateway RestApi.
|
String |
getRestApiName()
(experimental) A human friendly name for this Rest API.
|
abstract String |
getRestApiRootResourceId()
(experimental) The resource ID of the root resource.
|
abstract IResource |
getRoot()
(experimental) Represents the root resource of this API endpoint ('/').
|
Metric |
metric(String metricName)
(experimental) Returns the given named metric for this API.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Returns the given named metric for this API.
|
Metric |
metricCacheHitCount()
(experimental) Metric for the number of requests served from the API cache in a given period.
|
Metric |
metricCacheHitCount(MetricOptions props)
(experimental) Metric for the number of requests served from the API cache in a given period.
|
Metric |
metricCacheMissCount()
(experimental) Metric for the number of requests served from the backend in a given period, when API caching is enabled.
|
Metric |
metricCacheMissCount(MetricOptions props)
(experimental) Metric for the number of requests served from the backend in a given period, when API caching is enabled.
|
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 |
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.
|
void |
setDeploymentStage(Stage value)
(experimental) API Gateway stage that points to the latest deployment (if defined).
|
String |
urlForPath()
(experimental) Returns the URL for an HTTP path.
|
String |
urlForPath(String path)
(experimental) Returns the URL for an HTTP path.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected RestApiBase(software.amazon.jsii.JsiiObjectRef objRef)
protected RestApiBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected RestApiBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
RestApiBaseProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
protected RestApiBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public IApiKey addApiKey(@NotNull String id, @Nullable ApiKeyOptions options)
id - This parameter is required.options - @Stability(value=Experimental) @NotNull public IApiKey addApiKey(@NotNull String id)
id - This parameter is required.@Stability(value=Experimental) @NotNull public DomainName addDomainName(@NotNull String id, @NotNull DomainNameOptions options)
id - The construct id. This parameter is required.options - custom domain options. This parameter is required.@Stability(value=Experimental) @NotNull public GatewayResponse addGatewayResponse(@NotNull String id, @NotNull GatewayResponseOptions options)
id - This parameter is required.options - This parameter is required.@Stability(value=Experimental) @NotNull public UsagePlan addUsagePlan(@NotNull String id, @Nullable UsagePlanProps props)
id - This parameter is required.props - @Stability(value=Experimental) @NotNull public UsagePlan addUsagePlan(@NotNull String id)
id - This parameter is required.@Stability(value=Experimental) @NotNull public String arnForExecuteApi(@Nullable String method, @Nullable String path, @Nullable String stage)
arnForExecuteApi in interface IRestApimethod - path - stage - @Stability(value=Experimental) @NotNull public String arnForExecuteApi(@Nullable String method, @Nullable String path)
arnForExecuteApi in interface IRestApimethod - path - @Stability(value=Experimental) @NotNull public String arnForExecuteApi(@Nullable String method)
arnForExecuteApi in interface IRestApimethod - @Stability(value=Experimental) @NotNull public String arnForExecuteApi()
arnForExecuteApi in interface IRestApi@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricCacheHitCount(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricCacheHitCount()
Default: sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricCacheMissCount(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricCacheMissCount()
Default: sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricClientError(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricClientError()
Default: sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricCount(@Nullable MetricOptions props)
Default: sample count over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricCount()
Default: sample count over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricIntegrationLatency(@Nullable MetricOptions props)
Default: average over 5 minutes.
props - @Stability(value=Experimental) @NotNull public Metric metricIntegrationLatency()
Default: average over 5 minutes.
@Stability(value=Experimental) @NotNull public Metric metricLatency(@Nullable MetricOptions props)
The latency includes the integration latency and other API Gateway overhead.
Default: average over 5 minutes.
props - @Stability(value=Experimental) @NotNull public Metric metricLatency()
The latency includes the integration latency and other API Gateway overhead.
Default: average over 5 minutes.
@Stability(value=Experimental) @NotNull public Metric metricServerError(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricServerError()
Default: sum over 5 minutes
@Stability(value=Experimental) @NotNull public String urlForPath(@Nullable String path)
Fails if deploymentStage is not set either by deploy or explicitly.
path - @Stability(value=Experimental) @NotNull public String urlForPath()
Fails if deploymentStage is not set either by deploy or explicitly.
@Stability(value=Experimental) @NotNull public abstract String getRestApiId()
getRestApiId in interface IRestApi@Stability(value=Experimental) @NotNull public String getRestApiName()
Note that this is different from restApiId.
@Stability(value=Experimental) @NotNull public abstract String getRestApiRootResourceId()
getRestApiRootResourceId in interface IRestApi@Stability(value=Experimental) @NotNull public abstract IResource getRoot()
Resources and Methods are added to this resource.
@Stability(value=Experimental) @Nullable public DomainName getDomainName()
@Stability(value=Experimental) @Nullable public Deployment getLatestDeployment()
This resource will be automatically updated every time the REST API model changes.
This will be undefined if deploy is false.
getLatestDeployment in interface IRestApi@Stability(value=Experimental) @NotNull public Stage getDeploymentStage()
If deploy is disabled, you will need to explicitly assign this value in order to
set up integrations.
getDeploymentStage in interface IRestApi@Stability(value=Experimental)
public void setDeploymentStage(@NotNull
Stage value)
If deploy is disabled, you will need to explicitly assign this value in order to
set up integrations.
setDeploymentStage in interface IRestApiCopyright © 2021. All rights reserved.