@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:15.745Z") @Stability(value=Stable) public class Stage extends Resource implements IStage
DomainName domain;
RestApi restapi;
Deployment betaDeploy = Deployment.Builder.create(this, "beta-deployment")
.api(restapi)
.build();
Stage betaStage = Stage.Builder.create(this, "beta-stage")
.deployment(betaDeploy)
.build();
domain.addBasePathMapping(restapi, BasePathMappingOptions.builder().basePath("api/beta").stage(betaStage).build());
| Modifier and Type | Class and Description |
|---|---|
static class |
Stage.Builder
A fluent builder for
Stage. |
software.amazon.jsii.JsiiObject.InitializationModeIStage.Jsii$Default, IStage.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Stage(software.constructs.Construct scope,
String id,
StageProps props) |
protected |
Stage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Stage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IRestApi |
getRestApi()
RestApi to which this stage is associated.
|
String |
getStageName()
Name of this stage.
|
String |
urlForPath()
Returns the invoke URL for a certain path.
|
String |
urlForPath(String path)
Returns the invoke URL for a certain path.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected Stage(software.amazon.jsii.JsiiObjectRef objRef)
protected Stage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Stage(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
StageProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public String urlForPath(@Nullable String path)
path - The resource path.@Stability(value=Stable) @NotNull public String urlForPath()
@Stability(value=Stable) @NotNull public IRestApi getRestApi()
getRestApi in interface IStage@Stability(value=Stable) @NotNull public String getStageName()
getStageName in interface IStageCopyright © 2021. All rights reserved.