@Deprecated
public static final class StandardYarnSynthOptions.Builder
extends java.lang.Object
StandardYarnSynthOptions
Constructor and Description |
---|
Builder()
Deprecated.
|
@Deprecated public StandardYarnSynthOptions.Builder buildCommand(java.lang.String buildCommand)
StandardYarnSynthOptions.getBuildCommand()
buildCommand
- The build command.
By default, we assume NPM projects are either written in JavaScript or are
using ts-node
, so don't need a build command.
Otherwise, put the build command here, for example npm run build
.
this
@Deprecated public StandardYarnSynthOptions.Builder installCommand(java.lang.String installCommand)
StandardYarnSynthOptions.getInstallCommand()
installCommand
- The install command.this
@Deprecated public StandardYarnSynthOptions.Builder synthCommand(java.lang.String synthCommand)
StandardYarnSynthOptions.getSynthCommand()
synthCommand
- The synth command.this
@Deprecated public StandardYarnSynthOptions.Builder testCommands(java.util.List<java.lang.String> testCommands)
StandardYarnSynthOptions.getTestCommands()
testCommands
- Test commands.
These commands are run after the build commands but before the
synth command.this
@Deprecated public StandardYarnSynthOptions.Builder cloudAssemblyArtifact(Artifact cloudAssemblyArtifact)
SimpleSynthOptions.getCloudAssemblyArtifact()
cloudAssemblyArtifact
- The artifact where the CloudAssembly should be emitted. This parameter is required.this
@Deprecated public StandardYarnSynthOptions.Builder sourceArtifact(Artifact sourceArtifact)
SimpleSynthOptions.getSourceArtifact()
sourceArtifact
- The source artifact of the CodePipeline. This parameter is required.this
@Deprecated public StandardYarnSynthOptions.Builder actionName(java.lang.String actionName)
SimpleSynthOptions.getActionName()
actionName
- Name of the build action.this
@Deprecated public StandardYarnSynthOptions.Builder additionalArtifacts(java.util.List<? extends AdditionalArtifact> additionalArtifacts)
SimpleSynthOptions.getAdditionalArtifacts()
additionalArtifacts
- Produce additional output artifacts after the build based on the given directories.
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
.
this
@Deprecated public StandardYarnSynthOptions.Builder buildSpec(BuildSpec buildSpec)
SimpleSynthOptions.getBuildSpec()
buildSpec
- custom BuildSpec that is merged with the generated one.this
@Deprecated public StandardYarnSynthOptions.Builder copyEnvironmentVariables(java.util.List<java.lang.String> copyEnvironmentVariables)
SimpleSynthOptions.getCopyEnvironmentVariables()
copyEnvironmentVariables
- Environment variables to copy over from parent env.
These are environment variables that are being used by the build.this
@Deprecated public StandardYarnSynthOptions.Builder environment(BuildEnvironment environment)
SimpleSynthOptions.getEnvironment()
environment
- Build environment to use for CodeBuild job.this
@Deprecated public StandardYarnSynthOptions.Builder environmentVariables(java.util.Map<java.lang.String,? extends BuildEnvironmentVariable> environmentVariables)
SimpleSynthOptions.getEnvironmentVariables()
environmentVariables
- Environment variables to send into build.
NOTE: You may run into the 1000-character limit for the Action configuration if you have a large
number of variables or if their names or values are very long.
If you do, pass them to the underlying CodeBuild project directly in environment
instead.
However, you will not be able to use CodePipeline Variables in this case.this
@Deprecated public StandardYarnSynthOptions.Builder projectName(java.lang.String projectName)
SimpleSynthOptions.getProjectName()
projectName
- Name of the CodeBuild project.this
@Deprecated public StandardYarnSynthOptions.Builder rolePolicyStatements(java.util.List<? extends PolicyStatement> rolePolicyStatements)
SimpleSynthOptions.getRolePolicyStatements()
rolePolicyStatements
- Policy statements to add to role used during the synth.
Can be used to add acces to a CodeArtifact repository etc.this
@Deprecated public StandardYarnSynthOptions.Builder subdirectory(java.lang.String subdirectory)
SimpleSynthOptions.getSubdirectory()
subdirectory
- Directory inside the source where package.json and cdk.json are located.this
@Deprecated public StandardYarnSynthOptions.Builder subnetSelection(SubnetSelection subnetSelection)
SimpleSynthOptions.getSubnetSelection()
subnetSelection
- Which subnets to use.
Only used if 'vpc' is supplied.this
@Deprecated public StandardYarnSynthOptions.Builder vpc(IVpc vpc)
SimpleSynthOptions.getVpc()
vpc
- The VPC where to execute the SimpleSynth.this
@Deprecated public StandardYarnSynthOptions build()
StandardYarnSynthOptions
java.lang.NullPointerException
- if any required attribute was not provided