public static final class CodeBuildStepProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CodeBuildStepProps
CodeBuildStepProps
CodeBuildStepProps.Builder, CodeBuildStepProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
IRole |
getActionRole()
Custom execution role to be used for the Code Build Action.
|
java.util.Map<java.lang.String,IFileSetProducer> |
getAdditionalInputs()
Additional FileSets to put in other directories.
|
BuildEnvironment |
getBuildEnvironment()
Changes to environment.
|
java.util.List<java.lang.String> |
getCommands()
Commands to run.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnv()
Environment variables to set.
|
java.util.Map<java.lang.String,CfnOutput> |
getEnvFromCfnOutputs()
Set environment variables based on Stack Outputs.
|
IFileSetProducer |
getInput()
FileSet to run these scripts on.
|
java.util.List<java.lang.String> |
getInstallCommands()
Installation commands to run before the regular commands.
|
BuildSpec |
getPartialBuildSpec()
Additional configuration that can only be configured via BuildSpec.
|
java.lang.String |
getPrimaryOutputDirectory()
The directory that will contain the primary output fileset.
|
java.lang.String |
getProjectName()
Name for the generated CodeBuild project.
|
IRole |
getRole()
Custom execution role to be used for the CodeBuild project.
|
java.util.List<PolicyStatement> |
getRolePolicyStatements()
Policy statements to add to role used during the synth.
|
java.util.List<ISecurityGroup> |
getSecurityGroups()
Which security group to associate with the script's project network interfaces.
|
SubnetSelection |
getSubnetSelection()
Which subnets to use.
|
Duration |
getTimeout()
The number of minutes after which AWS CodeBuild stops the build if it's not complete.
|
IVpc |
getVpc()
The VPC where to execute the SimpleSynth.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final IRole getActionRole()
CodeBuildStepProps
Default: - A role is automatically created
getActionRole
in interface CodeBuildStepProps
public final BuildEnvironment getBuildEnvironment()
CodeBuildStepProps
This environment will be combined with the pipeline's default environment.
Default: - Use the pipeline's default build environment
getBuildEnvironment
in interface CodeBuildStepProps
public final BuildSpec getPartialBuildSpec()
CodeBuildStepProps
You should not use this to specify output artifacts; those should be supplied via the other properties of this class, otherwise CDK Pipelines won't be able to inspect the artifacts.
Set the commands
to an empty array if you want to fully specify
the BuildSpec using this field.
The BuildSpec must be available inline--it cannot reference a file on disk.
Default: - BuildSpec completely derived from other properties
getPartialBuildSpec
in interface CodeBuildStepProps
public final java.lang.String getProjectName()
CodeBuildStepProps
Default: - Automatically generated
getProjectName
in interface CodeBuildStepProps
public final IRole getRole()
CodeBuildStepProps
Default: - A role is automatically created
getRole
in interface CodeBuildStepProps
public final java.util.List<PolicyStatement> getRolePolicyStatements()
CodeBuildStepProps
Can be used to add acces to a CodeArtifact repository etc.
Default: - No policy statements added to CodeBuild Project Role
getRolePolicyStatements
in interface CodeBuildStepProps
public final java.util.List<ISecurityGroup> getSecurityGroups()
CodeBuildStepProps
If no security group is identified, one will be created automatically.
Only used if 'vpc' is supplied.
Default: - Security group will be automatically created.
getSecurityGroups
in interface CodeBuildStepProps
public final SubnetSelection getSubnetSelection()
CodeBuildStepProps
Only used if 'vpc' is supplied.
Default: - All private subnets.
getSubnetSelection
in interface CodeBuildStepProps
public final Duration getTimeout()
CodeBuildStepProps
For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.
Default: Duration.hours(1)
getTimeout
in interface CodeBuildStepProps
public final IVpc getVpc()
CodeBuildStepProps
Default: - No VPC
getVpc
in interface CodeBuildStepProps
public final java.util.List<java.lang.String> getCommands()
ShellStepProps
getCommands
in interface ShellStepProps
public final java.util.Map<java.lang.String,IFileSetProducer> getAdditionalInputs()
ShellStepProps
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();
Default: - No additional inputs
getAdditionalInputs
in interface ShellStepProps
public final java.util.Map<java.lang.String,java.lang.String> getEnv()
ShellStepProps
Default: - No environment variables
getEnv
in interface ShellStepProps
public final java.util.Map<java.lang.String,CfnOutput> getEnvFromCfnOutputs()
ShellStepProps
ShellStep
s following stack or stage deployments may
access the CfnOutput
s of those stacks to get access to
--for example--automatically generated resource names or
endpoint URLs.
Default: - No environment variables created from stack outputs
getEnvFromCfnOutputs
in interface ShellStepProps
public final IFileSetProducer getInput()
ShellStepProps
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
getInput
in interface ShellStepProps
public final java.util.List<java.lang.String> getInstallCommands()
ShellStepProps
For deployment engines that support it, install commands will be classified
differently in the job history from the regular commands
.
Default: - No installation commands
getInstallCommands
in interface ShellStepProps
public final java.lang.String getPrimaryOutputDirectory()
ShellStepProps
After running the script, the contents of the given directory will be treated as the primary output of this Step.
Default: - No primary output
getPrimaryOutputDirectory
in interface ShellStepProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()