@Internal public static interface IWebSocketStage.Jsii$Default extends IWebSocketStage, IStage.Jsii$Default
IWebSocketStage.IWebSocketStage.Jsii$Default, IWebSocketStage.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default IWebSocketApi |
getApi()
(experimental) The API this stage is associated to.
|
default String |
getCallbackUrl()
(experimental) The callback URL to this stage.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default software.constructs.Node |
getNode()
The tree node.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default String |
getStageName()
(experimental) The name of the stage;
|
default String |
getUrl()
(experimental) The URL to this stage.
|
default Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this HTTP Api Gateway Stage.
|
@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$DefaultgetNode in interface IStage.Jsii$Default@Stability(value=Stable) @NotNull 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 IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface IStage.Jsii$Default@Stability(value=Stable) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IStage.Jsii$Default@Stability(value=Experimental) @NotNull default String getStageName()
its primary identifier.
getStageName in interface IStagegetStageName in interface IStage.Jsii$Default@Stability(value=Experimental) @NotNull default String getUrl()
getUrl in interface IStagegetUrl in interface IStage.Jsii$Default@Stability(value=Experimental) @NotNull default IWebSocketApi getApi()
getApi in interface IWebSocketStage@Stability(value=Experimental) @NotNull default String getCallbackUrl()
You can use the callback URL to send messages to the client from the backend system. https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-basic-concept.html https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-how-to-call-websocket-api-connections.html
getCallbackUrl in interface IWebSocketStage@Stability(value=Stable)
default void applyRemovalPolicy(@NotNull
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 IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface IStage.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Experimental) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Default: - average over 5 minutes
metric in interface IStagemetric in interface IStage.Jsii$DefaultmetricName - This parameter is required.props - Copyright © 2023. All rights reserved.