@Stability(value=Experimental) public static final class CodeBuildAction.Builder extends Object implements software.amazon.jsii.Builder<CodeBuildAction>
CodeBuildAction.| Modifier and Type | Method and Description |
|---|---|
CodeBuildAction.Builder |
actionName(String actionName)
(experimental) The physical, human-readable name of the Action.
|
CodeBuildAction |
build() |
CodeBuildAction.Builder |
checkSecretsInPlainTextEnvVariables(Boolean checkSecretsInPlainTextEnvVariables)
(experimental) Whether to check for the presence of any secrets in the environment variables of the default type, BuildEnvironmentVariableType.PLAINTEXT.
|
static CodeBuildAction.Builder |
create() |
CodeBuildAction.Builder |
environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
(experimental) The environment variables to pass to the CodeBuild project when this action executes.
|
CodeBuildAction.Builder |
executeBatchBuild(Boolean executeBatchBuild)
(experimental) Trigger a batch build.
|
CodeBuildAction.Builder |
extraInputs(List<? extends Artifact> extraInputs)
(experimental) The list of additional input Artifacts for this action.
|
CodeBuildAction.Builder |
input(Artifact input)
(experimental) The source to use as input for this action.
|
CodeBuildAction.Builder |
outputs(List<? extends Artifact> outputs)
(experimental) The list of output Artifacts for this action.
|
CodeBuildAction.Builder |
project(IProject project)
(experimental) The action's Project.
|
CodeBuildAction.Builder |
role(IRole role)
(experimental) The Role in which context's this Action will be executing in.
|
CodeBuildAction.Builder |
runOrder(Number runOrder)
(experimental) The runOrder property for this Action.
|
CodeBuildAction.Builder |
type(CodeBuildActionType type)
(experimental) The type of the action that determines its CodePipeline Category - Build, or Test.
|
CodeBuildAction.Builder |
variablesNamespace(String variablesNamespace)
(experimental) The name of the namespace to use for variables emitted by this action.
|
@Stability(value=Experimental) public static CodeBuildAction.Builder create()
CodeBuildAction.Builder.@Stability(value=Experimental) public CodeBuildAction.Builder actionName(String actionName)
Note that Action names must be unique within a single Stage.
actionName - The physical, human-readable name of the Action. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder runOrder(Number runOrder)
RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
runOrder - The runOrder property for this Action. This parameter is required.thishttps://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html@Stability(value=Experimental) public CodeBuildAction.Builder variablesNamespace(String variablesNamespace)
Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
variablesNamespace - The name of the namespace to use for variables emitted by this action. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder role(IRole role)
The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your {@link IAction.bind} method in the {@link ActionBindOptions.role} property.
Default: a new Role will be generated
role - The Role in which context's this Action will be executing in. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder input(Artifact input)
input - The source to use as input for this action. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder project(IProject project)
project - The action's Project. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder checkSecretsInPlainTextEnvVariables(Boolean checkSecretsInPlainTextEnvVariables)
Default: true
checkSecretsInPlainTextEnvVariables - Whether to check for the presence of any secrets in the environment variables of the default type, BuildEnvironmentVariableType.PLAINTEXT. Since using a secret for the value of that kind of variable would result in it being displayed in plain text in the AWS Console, the construct will throw an exception if it detects a secret was passed there. Pass this property as false if you want to skip this validation, and keep using a secret in a plain text environment variable. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
If a variable with the same name was set both on the project level, and here, this value will take precedence.
Default: - No additional environment variables are specified.
environmentVariables - The environment variables to pass to the CodeBuild project when this action executes. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder executeBatchBuild(Boolean executeBatchBuild)
Enabling this will enable batch builds on the CodeBuild project.
Default: false
executeBatchBuild - Trigger a batch build. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder extraInputs(List<? extends Artifact> extraInputs)
The directories the additional inputs will be available at are available
during the project's build in the CODEBUILD_SRC_DIR_
extraInputs - The list of additional input Artifacts for this action. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder outputs(List<? extends Artifact> outputs)
Note: if you specify more than one output Artifact here, you cannot use the primary 'artifacts' section of the buildspec; you have to use the 'secondary-artifacts' section instead. See https://docs.aws.amazon.com/codebuild/latest/userguide/sample-multi-in-out.html for details.
Default: the action will not have any outputs
outputs - The list of output Artifacts for this action. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction.Builder type(CodeBuildActionType type)
Default: CodeBuildActionType.BUILD
type - The type of the action that determines its CodePipeline Category - Build, or Test. This parameter is required.this@Stability(value=Experimental) public CodeBuildAction build()
build in interface software.amazon.jsii.Builder<CodeBuildAction>Copyright © 2021. All rights reserved.