Package software.amazon.awscdk.pipelines
Class StandardNpmSynthOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.StandardNpmSynthOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StandardNpmSynthOptions>
- Enclosing interface:
- StandardNpmSynthOptions
@Stability(Deprecated)
@Deprecated
public static final class StandardNpmSynthOptions.Builder
extends Object
implements software.amazon.jsii.Builder<StandardNpmSynthOptions>
Deprecated.
A builder for
StandardNpmSynthOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Deprecated.additionalArtifacts
(List<? extends AdditionalArtifact> additionalArtifacts) Deprecated.build()
Deprecated.buildCommand
(String buildCommand) Deprecated.Deprecated.cloudAssemblyArtifact
(Artifact cloudAssemblyArtifact) Deprecated.copyEnvironmentVariables
(List<String> copyEnvironmentVariables) Deprecated.environment
(BuildEnvironment environment) Deprecated.environmentVariables
(Map<String, ? extends BuildEnvironmentVariable> environmentVariables) Deprecated.installCommand
(String installCommand) Deprecated.projectName
(String projectName) Deprecated.rolePolicyStatements
(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.sourceArtifact
(Artifact sourceArtifact) Deprecated.subdirectory
(String subdirectory) Deprecated.subnetSelection
(SubnetSelection subnetSelection) Deprecated.synthCommand
(String synthCommand) Deprecated.testCommands
(List<String> testCommands) Deprecated.Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
buildCommand
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder buildCommand(String buildCommand) Deprecated.Sets the value ofStandardNpmSynthOptions.getBuildCommand()
- Parameters:
buildCommand
- The build command. By default, we assume NPM projects are either written in JavaScript or are usingts-node
, so don't need a build command.Otherwise, put the build command here, for example
npm run build
.- Returns:
this
-
installCommand
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder installCommand(String installCommand) Deprecated.Sets the value ofStandardNpmSynthOptions.getInstallCommand()
- Parameters:
installCommand
- The install command.- Returns:
this
-
synthCommand
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder synthCommand(String synthCommand) Deprecated.Sets the value ofStandardNpmSynthOptions.getSynthCommand()
- Parameters:
synthCommand
- The synth command.- Returns:
this
-
testCommands
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder testCommands(List<String> testCommands) Deprecated.Sets the value ofStandardNpmSynthOptions.getTestCommands()
- Parameters:
testCommands
- Test commands. These commands are run after the build commands but before the synth command.- Returns:
this
-
cloudAssemblyArtifact
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder cloudAssemblyArtifact(Artifact cloudAssemblyArtifact) Deprecated.Sets the value ofSimpleSynthOptions.getCloudAssemblyArtifact()
- Parameters:
cloudAssemblyArtifact
- The artifact where the CloudAssembly should be emitted. This parameter is required.- Returns:
this
-
sourceArtifact
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder sourceArtifact(Artifact sourceArtifact) Deprecated.Sets the value ofSimpleSynthOptions.getSourceArtifact()
- Parameters:
sourceArtifact
- The source artifact of the CodePipeline. This parameter is required.- Returns:
this
-
actionName
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder actionName(String actionName) Deprecated.Sets the value ofSimpleSynthOptions.getActionName()
- Parameters:
actionName
- Name of the build action.- Returns:
this
-
additionalArtifacts
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder additionalArtifacts(List<? extends AdditionalArtifact> additionalArtifacts) Deprecated.Sets the value ofSimpleSynthOptions.getAdditionalArtifacts()
- Parameters:
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
.- Returns:
this
-
buildSpec
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder buildSpec(BuildSpec buildSpec) Deprecated.Sets the value ofSimpleSynthOptions.getBuildSpec()
- Parameters:
buildSpec
- custom BuildSpec that is merged with the generated one.- Returns:
this
-
copyEnvironmentVariables
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder copyEnvironmentVariables(List<String> copyEnvironmentVariables) Deprecated.Sets the value ofSimpleSynthOptions.getCopyEnvironmentVariables()
- Parameters:
copyEnvironmentVariables
- Environment variables to copy over from parent env. These are environment variables that are being used by the build.- Returns:
this
-
environment
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder environment(BuildEnvironment environment) Deprecated.Sets the value ofSimpleSynthOptions.getEnvironment()
- Parameters:
environment
- Build environment to use for CodeBuild job.- Returns:
this
-
environmentVariables
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder environmentVariables(Map<String, ? extends BuildEnvironmentVariable> environmentVariables) Deprecated.Sets the value ofSimpleSynthOptions.getEnvironmentVariables()
- Parameters:
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 inenvironment
instead. However, you will not be able to use CodePipeline Variables in this case.- Returns:
this
-
projectName
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder projectName(String projectName) Deprecated.Sets the value ofSimpleSynthOptions.getProjectName()
- Parameters:
projectName
- Name of the CodeBuild project.- Returns:
this
-
rolePolicyStatements
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.Sets the value ofSimpleSynthOptions.getRolePolicyStatements()
- Parameters:
rolePolicyStatements
- Policy statements to add to role used during the synth. Can be used to add acces to a CodeArtifact repository etc.- Returns:
this
-
subdirectory
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder subdirectory(String subdirectory) Deprecated.Sets the value ofSimpleSynthOptions.getSubdirectory()
- Parameters:
subdirectory
- Directory inside the source where package.json and cdk.json are located.- Returns:
this
-
subnetSelection
@Stability(Deprecated) @Deprecated public StandardNpmSynthOptions.Builder subnetSelection(SubnetSelection subnetSelection) Deprecated.Sets the value ofSimpleSynthOptions.getSubnetSelection()
- Parameters:
subnetSelection
- Which subnets to use. Only used if 'vpc' is supplied.- Returns:
this
-
vpc
Deprecated.Sets the value ofSimpleSynthOptions.getVpc()
- Parameters:
vpc
- The VPC where to execute the SimpleSynth.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StandardNpmSynthOptions>
- Returns:
- a new instance of
StandardNpmSynthOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-