Class ShellScriptAction.Builder

java.lang.Object
software.amazon.awscdk.pipelines.ShellScriptAction.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ShellScriptAction>
Enclosing class:
ShellScriptAction

@Stability(Deprecated) @Deprecated public static final class ShellScriptAction.Builder extends Object implements software.amazon.jsii.Builder<ShellScriptAction>
Deprecated.
(deprecated) A fluent builder for ShellScriptAction.
  • Method Details

    • create

      @Stability(Deprecated) @Deprecated public static ShellScriptAction.Builder create()
      Deprecated.
      Returns:
      a new instance of ShellScriptAction.Builder.
    • actionName

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder actionName(String actionName)
      Deprecated.
      (deprecated) Name of the validation action in the pipeline.

      Parameters:
      actionName - Name of the validation action in the pipeline. This parameter is required.
      Returns:
      this
    • commands

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder commands(List<String> commands)
      Deprecated.
      (deprecated) Commands to run.

      Parameters:
      commands - Commands to run. This parameter is required.
      Returns:
      this
    • additionalArtifacts

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder additionalArtifacts(List<? extends Artifact> additionalArtifacts)
      Deprecated.
      (deprecated) Additional artifacts to use as input for the CodeBuild project.

      You can use these files to load more complex test sets into the shellscript build environment.

      The files artifact given here will be unpacked into the current working directory, the other ones will be unpacked into directories which are available through the environment variables $CODEBUILD_SRC_DIR_.

      The CodeBuild job must have at least one input artifact, so you must provide either at least one additional artifact here or one stack output using useOutput.

      Default: - No additional artifacts

      Parameters:
      additionalArtifacts - Additional artifacts to use as input for the CodeBuild project. This parameter is required.
      Returns:
      this
    • bashOptions

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder bashOptions(String bashOptions)
      Deprecated.
      (deprecated) Bash options to set at the start of the script.

      Default: '-eu' (errexit and nounset)

      Parameters:
      bashOptions - Bash options to set at the start of the script. This parameter is required.
      Returns:
      this
    • environment

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder environment(BuildEnvironment environment)
      Deprecated.
      (deprecated) The CodeBuild environment where scripts are executed.

      Default: LinuxBuildImage.STANDARD_5_0

      Parameters:
      environment - The CodeBuild environment where scripts are executed. This parameter is required.
      Returns:
      this
    • environmentVariables

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
      Deprecated.
      (deprecated) Environment variables to send into build.

      Default: - No additional environment variables

      Parameters:
      environmentVariables - Environment variables to send into build. This parameter is required.
      Returns:
      this
    • rolePolicyStatements

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements)
      Deprecated.
      (deprecated) Additional policy statements to add to the execution role.

      Default: - No policy statements

      Parameters:
      rolePolicyStatements - Additional policy statements to add to the execution role. This parameter is required.
      Returns:
      this
    • runOrder

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder runOrder(Number runOrder)
      Deprecated.
      (deprecated) RunOrder for this action.

      Use this to sequence the shell script after the deployments.

      The default value is 100 so you don't have to supply the value if you just want to run this after the application stacks have been deployed, and you don't have more than 100 stacks.

      Default: 100

      Parameters:
      runOrder - RunOrder for this action. This parameter is required.
      Returns:
      this
    • securityGroups

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
      Deprecated.
      (deprecated) Which security group to associate with the script's project network interfaces.

      If no security group is identified, one will be created automatically.

      Only used if 'vpc' is supplied.

      Default: - Security group will be automatically created.

      Parameters:
      securityGroups - Which security group to associate with the script's project network interfaces. This parameter is required.
      Returns:
      this
    • subnetSelection

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder subnetSelection(SubnetSelection subnetSelection)
      Deprecated.
      (deprecated) Which subnets to use.

      Only used if 'vpc' is supplied.

      Default: - All private subnets.

      Parameters:
      subnetSelection - Which subnets to use. This parameter is required.
      Returns:
      this
    • useOutputs

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder useOutputs(Map<String,? extends StackOutput> useOutputs)
      Deprecated.
      (deprecated) Stack outputs to make available as environment variables.

      Default: - No outputs used

      Parameters:
      useOutputs - Stack outputs to make available as environment variables. This parameter is required.
      Returns:
      this
    • vpc

      @Stability(Deprecated) @Deprecated public ShellScriptAction.Builder vpc(IVpc vpc)
      Deprecated.
      (deprecated) The VPC where to execute the specified script.

      Default: - No VPC

      Parameters:
      vpc - The VPC where to execute the specified script. This parameter is required.
      Returns:
      this
    • build

      @Stability(Deprecated) @Deprecated public ShellScriptAction build()
      Deprecated.
      Specified by:
      build in interface software.amazon.jsii.Builder<ShellScriptAction>
      Returns:
      a newly built instance of ShellScriptAction.