@Stability(value=Stable) @Internal public static final class CodeBuildStepProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CodeBuildStepProps
CodeBuildStepPropssoftware.amazon.jsii.JsiiObject.InitializationModeCodeBuildStepProps.Builder, CodeBuildStepProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CodeBuildStepProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CodeBuildStepProps.Builder. |
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(Object o) |
IRole |
getActionRole()
Custom execution role to be used for the Code Build Action.
|
Map<String,IFileSetProducer> |
getAdditionalInputs()
Additional FileSets to put in other directories.
|
BuildEnvironment |
getBuildEnvironment()
Changes to environment.
|
Cache |
getCache()
Caching strategy to use.
|
List<String> |
getCommands()
Commands to run.
|
Map<String,String> |
getEnv()
Environment variables to set.
|
Map<String,CfnOutput> |
getEnvFromCfnOutputs()
Set environment variables based on Stack Outputs.
|
IFileSetProducer |
getInput()
FileSet to run these scripts on.
|
List<String> |
getInstallCommands()
Installation commands to run before the regular commands.
|
BuildSpec |
getPartialBuildSpec()
Additional configuration that can only be configured via BuildSpec.
|
String |
getPrimaryOutputDirectory()
The directory that will contain the primary output fileset.
|
String |
getProjectName()
Name for the generated CodeBuild project.
|
IRole |
getRole()
Custom execution role to be used for the CodeBuild project.
|
List<PolicyStatement> |
getRolePolicyStatements()
Policy statements to add to role used during the synth.
|
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() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CodeBuildStepProps.Builder builder)
CodeBuildStepProps.Builder.public final IRole getActionRole()
CodeBuildStepPropsDefault: - A role is automatically created
getActionRole in interface CodeBuildStepPropspublic final BuildEnvironment getBuildEnvironment()
CodeBuildStepPropsThis environment will be combined with the pipeline's default environment.
Default: - Use the pipeline's default build environment
getBuildEnvironment in interface CodeBuildStepPropspublic final Cache getCache()
CodeBuildStepPropsDefault: - No cache
getCache in interface CodeBuildStepPropspublic final BuildSpec getPartialBuildSpec()
CodeBuildStepPropsYou 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 CodeBuildStepPropspublic final String getProjectName()
CodeBuildStepPropsDefault: - Automatically generated
getProjectName in interface CodeBuildStepPropspublic final IRole getRole()
CodeBuildStepPropsDefault: - A role is automatically created
getRole in interface CodeBuildStepPropspublic final List<PolicyStatement> getRolePolicyStatements()
CodeBuildStepPropsCan be used to add acces to a CodeArtifact repository etc.
Default: - No policy statements added to CodeBuild Project Role
getRolePolicyStatements in interface CodeBuildStepPropspublic final List<ISecurityGroup> getSecurityGroups()
CodeBuildStepPropsIf 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 CodeBuildStepPropspublic final SubnetSelection getSubnetSelection()
CodeBuildStepPropsOnly used if 'vpc' is supplied.
Default: - All private subnets.
getSubnetSelection in interface CodeBuildStepPropspublic final Duration getTimeout()
CodeBuildStepPropsFor valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.
Default: Duration.hours(1)
getTimeout in interface CodeBuildStepPropspublic final IVpc getVpc()
CodeBuildStepPropsDefault: - No VPC
getVpc in interface CodeBuildStepPropspublic final List<String> getCommands()
ShellStepPropsgetCommands in interface ShellStepPropspublic final Map<String,IFileSetProducer> getAdditionalInputs()
ShellStepPropsSpecifies 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 ShellStepPropspublic final Map<String,String> getEnv()
ShellStepPropsDefault: - No environment variables
getEnv in interface ShellStepPropspublic final Map<String,CfnOutput> getEnvFromCfnOutputs()
ShellStepProps
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
getEnvFromCfnOutputs in interface ShellStepPropspublic 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 ShellStepPropspublic final List<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 ShellStepPropspublic final String getPrimaryOutputDirectory()
ShellStepPropsAfter 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@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.