Interface ShellStepProps

All Superinterfaces:
All Known Subinterfaces:
All Known Implementing Classes:
CodeBuildStepProps.Jsii$Proxy, ShellStepProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-31T18:44:21.557Z") @Stability(Stable) public interface ShellStepProps extends
Construction properties for a `ShellStep`.


 // Modern API
 CodePipeline modernPipeline = CodePipeline.Builder.create(this, "Pipeline")
                 .input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder()
                 .commands(List.of("npm ci", "npm run build", "npx cdk synth"))
 // Original API
 Artifact cloudAssemblyArtifact = new Artifact();
 CdkPipeline originalPipeline = CdkPipeline.Builder.create(this, "Pipeline")
  • Method Details

    • getCommands

      @Stability(Stable) @NotNull List<String> getCommands()
      Commands to run.
    • getAdditionalInputs

      @Stability(Stable) @Nullable default Map<String,IFileSetProducer> getAdditionalInputs()
      Additional FileSets to put in other directories.

      Specifies a mapping from directory name to FileSets. During the script execution, the FileSets will be available in the directories indicated.

      The directory names may be relative. For example, you can put the main input and an additional input side-by-side with the following configuration:

       ShellStep script = ShellStep.Builder.create("MainScript")
               .commands(List.of("npm ci", "npm run build", "npx cdk synth"))
               .input(CodePipelineSource.gitHub("org/source1", "main"))
                       "../siblingdir", CodePipelineSource.gitHub("org/source2", "main")))

      Default: - No additional inputs

    • getEnv

      @Stability(Stable) @Nullable default Map<String,String> getEnv()
      Environment variables to set.

      Default: - No environment variables

    • getEnvFromCfnOutputs

      @Stability(Stable) @Nullable default Map<String,CfnOutput> getEnvFromCfnOutputs()
      Set environment variables based on Stack Outputs.

      ShellSteps following stack or stage deployments may access the CfnOutputs of those stacks to get access to --for example--automatically generated resource names or endpoint URLs.

      Default: - No environment variables created from stack outputs

    • getInput

      @Stability(Stable) @Nullable default IFileSetProducer getInput()
      FileSet to run these scripts on.

      The files in the FileSet will be placed in the working directory when the script is executed. Use additionalInputs to download file sets to other directories as well.

      Default: - No input specified

    • getInstallCommands

      @Stability(Stable) @Nullable default List<String> getInstallCommands()
      Installation commands to run before the regular commands.

      For deployment engines that support it, install commands will be classified differently in the job history from the regular commands.

      Default: - No installation commands

    • getPrimaryOutputDirectory

      @Stability(Stable) @Nullable default String getPrimaryOutputDirectory()
      The directory that will contain the primary output fileset.

      After running the script, the contents of the given directory will be treated as the primary output of this Step.

      Default: - No primary output

    • builder

      @Stability(Stable) static ShellStepProps.Builder builder()
      a ShellStepProps.Builder of ShellStepProps