All Implemented Interfaces:
IConstruct, IDependable, IResource, IStage,, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.093Z") @Stability(Stable) public class Stage extends Resource implements IStage

 // production stage
 LogGroup prdLogGroup = new LogGroup(this, "PrdLogs");
 RestApi api = RestApi.Builder.create(this, "books")
                 .accessLogDestination(new LogGroupLogDestination(prdLogGroup))
 Deployment deployment = Deployment.Builder.create(this, "Deployment").api(api).build();
 // development stage
 LogGroup devLogGroup = new LogGroup(this, "DevLogs");
 Stage.Builder.create(this, "dev")
         .accessLogDestination(new LogGroupLogDestination(devLogGroup))
  • Constructor Details

    • Stage

      protected Stage( objRef)
    • Stage

      protected Stage( initializationMode)
    • Stage

      @Stability(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.
  • Method Details

    • urlForPath

      @Stability(Stable) @NotNull public String urlForPath(@Nullable String path)
      Returns the invoke URL for a certain path.

      path - The resource path.
    • urlForPath

      @Stability(Stable) @NotNull public String urlForPath()
      Returns the invoke URL for a certain path.
    • getRestApi

      @Stability(Stable) @NotNull public IRestApi getRestApi()
      RestApi to which this stage is associated.
      Specified by:
      getRestApi in interface IStage
    • getStageArn

      @Stability(Stable) @NotNull public String getStageArn()
      Returns the resource ARN for this stage:.


      Note that this is separate from the execute-api ARN for methods and resources within this stage.

    • getStageName

      @Stability(Stable) @NotNull public String getStageName()
      Name of this stage.
      Specified by:
      getStageName in interface IStage