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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:56.854Z") @Stability(Stable) public class Stage extends StageBase

 // production stage
 LogGroup prodLogGroup = new LogGroup(this, "PrdLogs");
 RestApi api = RestApi.Builder.create(this, "books")
                 .accessLogDestination(new LogGroupLogDestination(prodLogGroup))
 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

    • fromStageAttributes

      @Stability(Stable) @NotNull public static IStage fromStageAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull StageAttributes attrs)
      Import a Stage by its attributes.

      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • getRestApi

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

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