@Stability(value=Experimental) public static final class SimpleSynthAction.Builder extends Object implements software.amazon.jsii.Builder<SimpleSynthAction>
SimpleSynthAction.| Modifier and Type | Method and Description |
|---|---|
SimpleSynthAction.Builder |
actionName(String actionName)
(experimental) Name of the build action.
|
SimpleSynthAction.Builder |
additionalArtifacts(List<? extends AdditionalArtifact> additionalArtifacts)
(experimental) Produce additional output artifacts after the build based on the given directories.
|
SimpleSynthAction |
build() |
SimpleSynthAction.Builder |
buildCommand(String buildCommand)
Deprecated.
Use `buildCommands` instead
|
SimpleSynthAction.Builder |
buildCommands(List<String> buildCommands)
(experimental) The build commands.
|
SimpleSynthAction.Builder |
cloudAssemblyArtifact(Artifact cloudAssemblyArtifact)
(experimental) The artifact where the CloudAssembly should be emitted.
|
SimpleSynthAction.Builder |
copyEnvironmentVariables(List<String> copyEnvironmentVariables)
(experimental) Environment variables to copy over from parent env.
|
static SimpleSynthAction.Builder |
create() |
SimpleSynthAction.Builder |
environment(BuildEnvironment environment)
(experimental) Build environment to use for CodeBuild job.
|
SimpleSynthAction.Builder |
environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
(experimental) Environment variables to send into build.
|
SimpleSynthAction.Builder |
installCommand(String installCommand)
Deprecated.
Use `installCommands` instead
|
SimpleSynthAction.Builder |
installCommands(List<String> installCommands)
(experimental) Install commands.
|
SimpleSynthAction.Builder |
projectName(String projectName)
(experimental) Name of the CodeBuild project.
|
SimpleSynthAction.Builder |
rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements)
(experimental) Policy statements to add to role used during the synth.
|
SimpleSynthAction.Builder |
sourceArtifact(Artifact sourceArtifact)
(experimental) The source artifact of the CodePipeline.
|
SimpleSynthAction.Builder |
subdirectory(String subdirectory)
(experimental) Directory inside the source where package.json and cdk.json are located.
|
SimpleSynthAction.Builder |
subnetSelection(SubnetSelection subnetSelection)
(experimental) Which subnets to use.
|
SimpleSynthAction.Builder |
synthCommand(String synthCommand)
(experimental) The synth command.
|
SimpleSynthAction.Builder |
testCommands(List<String> testCommands)
(experimental) Test commands.
|
SimpleSynthAction.Builder |
vpc(IVpc vpc)
(experimental) The VPC where to execute the SimpleSynth.
|
@Stability(value=Experimental) public static SimpleSynthAction.Builder create()
SimpleSynthAction.Builder.@Stability(value=Experimental) public SimpleSynthAction.Builder cloudAssemblyArtifact(Artifact cloudAssemblyArtifact)
cloudAssemblyArtifact - The artifact where the CloudAssembly should be emitted. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder sourceArtifact(Artifact sourceArtifact)
sourceArtifact - The source artifact of the CodePipeline. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder actionName(String actionName)
Default: 'Synth'
actionName - Name of the build action. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder additionalArtifacts(List<? extends AdditionalArtifact> additionalArtifacts)
Can be used to produce additional artifacts during the build step, separate from the cloud assembly, which can be used further on in the pipeline.
Directories are evaluated with respect to subdirectory.
Default: - No additional artifacts generated
additionalArtifacts - Produce additional output artifacts after the build based on the given directories. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder copyEnvironmentVariables(List<String> copyEnvironmentVariables)
These are environment variables that are being used by the build.
Default: - No environment variables copied
copyEnvironmentVariables - Environment variables to copy over from parent env. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder environment(BuildEnvironment environment)
Default: BuildEnvironment.LinuxBuildImage.STANDARD_4_0
environment - Build environment to use for CodeBuild job. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
Default: - No additional environment variables
environmentVariables - Environment variables to send into build. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder projectName(String projectName)
Default: - Automatically generated
projectName - Name of the CodeBuild project. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements)
Can be used to add acces to a CodeArtifact repository etc.
Default: - No policy statements added to CodeBuild Project Role
rolePolicyStatements - Policy statements to add to role used during the synth. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder subdirectory(String subdirectory)
Default: - Repository root
subdirectory - Directory inside the source where package.json and cdk.json are located. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder subnetSelection(SubnetSelection subnetSelection)
Only used if 'vpc' is supplied.
Default: - All private subnets.
subnetSelection - Which subnets to use. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder vpc(IVpc vpc)
Default: - No VPC
vpc - The VPC where to execute the SimpleSynth. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder synthCommand(String synthCommand)
synthCommand - The synth command. This parameter is required.this@Stability(value=Deprecated) @Deprecated public SimpleSynthAction.Builder buildCommand(String buildCommand)
If your programming language requires a compilation step, put the compilation command here.
Default: - No build required
buildCommand - The build command. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder buildCommands(List<String> buildCommands)
If your programming language requires a compilation step, put the compilation command here.
Default: - No build required
buildCommands - The build commands. This parameter is required.this@Stability(value=Deprecated) @Deprecated public SimpleSynthAction.Builder installCommand(String installCommand)
If not provided by the build image or another dependency
management tool, at least install the CDK CLI here using
npm install -g aws-cdk.
Default: - No install required
installCommand - The install command. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder installCommands(List<String> installCommands)
If not provided by the build image or another dependency
management tool, at least install the CDK CLI here using
npm install -g aws-cdk.
Default: - No install required
installCommands - Install commands. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction.Builder testCommands(List<String> testCommands)
These commands are run after the build commands but before the synth command.
Default: - No test commands
testCommands - Test commands. This parameter is required.this@Stability(value=Experimental) public SimpleSynthAction build()
build in interface software.amazon.jsii.Builder<SimpleSynthAction>Copyright © 2021. All rights reserved.