Class AddGitHubStageOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • gitHubEnvironment

        @Stability(Stable)
        public AddGitHubStageOptions.Builder gitHubEnvironment​(String gitHubEnvironment)
        Parameters:
        gitHubEnvironment - Run the stage in a specific GitHub Environment. If specified, any protection rules configured for the environment must pass before the job is set to a runner. For example, if the environment has a manual approval rule configured, then the workflow will wait for the approval before sending the job to the runner.

        Running a workflow that references an environment that does not exist will create an environment with the referenced name.

        Returns:
        this
      • stackCapabilities

        @Stability(Stable)
        public AddGitHubStageOptions.Builder stackCapabilities​(List<? extends StackCapabilities> stackCapabilities)
        Parameters:
        stackCapabilities - In some cases, you must explicitly acknowledge that your CloudFormation stack template contains certain capabilities in order for CloudFormation to create the stack. If insufficiently specified, CloudFormation returns an InsufficientCapabilities error.
        Returns:
        this
      • post

        @Stability(Stable)
        public AddGitHubStageOptions.Builder post​(List<? extends software.amazon.awscdk.pipelines.Step> post)
        Sets the value of AddStageOpts.getPost()
        Parameters:
        post - Additional steps to run after all of the stacks in the stage.
        Returns:
        this
      • pre

        @Stability(Stable)
        public AddGitHubStageOptions.Builder pre​(List<? extends software.amazon.awscdk.pipelines.Step> pre)
        Sets the value of AddStageOpts.getPre()
        Parameters:
        pre - Additional steps to run before any of the stacks in the stage.
        Returns:
        this
      • stackSteps

        @Stability(Stable)
        public AddGitHubStageOptions.Builder stackSteps​(List<? extends software.amazon.awscdk.pipelines.StackSteps> stackSteps)
        Sets the value of AddStageOpts.getStackSteps()
        Parameters:
        stackSteps - Instructions for stack level steps.
        Returns:
        this