@Stability(value=Stable) public static final class ShellStepProps.Builder extends Object implements software.amazon.jsii.Builder<ShellStepProps>
ShellStepProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ShellStepProps.Builder |
additionalInputs(Map<String,? extends IFileSetProducer> additionalInputs)
Sets the value of
ShellStepProps.getAdditionalInputs() |
ShellStepProps |
build()
Builds the configured instance.
|
ShellStepProps.Builder |
commands(List<String> commands)
Sets the value of
ShellStepProps.getCommands() |
ShellStepProps.Builder |
env(Map<String,String> env)
Sets the value of
ShellStepProps.getEnv() |
ShellStepProps.Builder |
envFromCfnOutputs(Map<String,? extends CfnOutput> envFromCfnOutputs)
Sets the value of
ShellStepProps.getEnvFromCfnOutputs() |
ShellStepProps.Builder |
input(IFileSetProducer input)
Sets the value of
ShellStepProps.getInput() |
ShellStepProps.Builder |
installCommands(List<String> installCommands)
Sets the value of
ShellStepProps.getInstallCommands() |
ShellStepProps.Builder |
primaryOutputDirectory(String primaryOutputDirectory)
Sets the value of
ShellStepProps.getPrimaryOutputDirectory() |
@Stability(value=Stable) public ShellStepProps.Builder commands(List<String> commands)
ShellStepProps.getCommands()commands - Commands to run. This parameter is required.this@Stability(value=Stable) public ShellStepProps.Builder additionalInputs(Map<String,? extends IFileSetProducer> additionalInputs)
ShellStepProps.getAdditionalInputs()additionalInputs - 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"))
.additionalInputs(Map.of(
"../siblingdir", CodePipelineSource.gitHub("org/source2", "main")))
.build();
this@Stability(value=Stable) public ShellStepProps.Builder env(Map<String,String> env)
ShellStepProps.getEnv()env - Environment variables to set.this@Stability(value=Stable) public ShellStepProps.Builder envFromCfnOutputs(Map<String,? extends CfnOutput> envFromCfnOutputs)
ShellStepProps.getEnvFromCfnOutputs()envFromCfnOutputs - 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.this@Stability(value=Stable) public ShellStepProps.Builder input(IFileSetProducer input)
ShellStepProps.getInput()input - 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.this@Stability(value=Stable) public ShellStepProps.Builder installCommands(List<String> installCommands)
ShellStepProps.getInstallCommands()installCommands - 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.this@Stability(value=Stable) public ShellStepProps.Builder primaryOutputDirectory(String primaryOutputDirectory)
ShellStepProps.getPrimaryOutputDirectory()primaryOutputDirectory - 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.this@Stability(value=Stable) public ShellStepProps build()
build in interface software.amazon.jsii.Builder<ShellStepProps>ShellStepPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.