Package software.amazon.awscdk.pipelines
Class StandardYarnSynthOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.StandardYarnSynthOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StandardYarnSynthOptions>
- Enclosing interface:
- StandardYarnSynthOptions
@Stability(Deprecated)
@Deprecated
public static final class StandardYarnSynthOptions.Builder
extends Object
implements software.amazon.jsii.Builder<StandardYarnSynthOptions>
Deprecated.
A builder for
StandardYarnSynthOptions
-
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 StandardYarnSynthOptions.Builder buildCommand(String buildCommand) Deprecated.Sets the value ofStandardYarnSynthOptions.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 StandardYarnSynthOptions.Builder installCommand(String installCommand) Deprecated.Sets the value ofStandardYarnSynthOptions.getInstallCommand()
- Parameters:
installCommand
- The install command.- Returns:
this
-
synthCommand
@Stability(Deprecated) @Deprecated public StandardYarnSynthOptions.Builder synthCommand(String synthCommand) Deprecated.Sets the value ofStandardYarnSynthOptions.getSynthCommand()
- Parameters:
synthCommand
- The synth command.- Returns:
this
-
testCommands
@Stability(Deprecated) @Deprecated public StandardYarnSynthOptions.Builder testCommands(List<String> testCommands) Deprecated.Sets the value ofStandardYarnSynthOptions.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 StandardYarnSynthOptions.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 StandardYarnSynthOptions.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 StandardYarnSynthOptions.Builder actionName(String actionName) Deprecated.Sets the value ofSimpleSynthOptions.getActionName()
- Parameters:
actionName
- Name of the build action.- Returns:
this
-
additionalArtifacts
@Stability(Deprecated) @Deprecated public StandardYarnSynthOptions.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 StandardYarnSynthOptions.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 StandardYarnSynthOptions.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 StandardYarnSynthOptions.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 StandardYarnSynthOptions.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 StandardYarnSynthOptions.Builder projectName(String projectName) Deprecated.Sets the value ofSimpleSynthOptions.getProjectName()
- Parameters:
projectName
- Name of the CodeBuild project.- Returns:
this
-
rolePolicyStatements
@Stability(Deprecated) @Deprecated public StandardYarnSynthOptions.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 StandardYarnSynthOptions.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 StandardYarnSynthOptions.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<StandardYarnSynthOptions>
- Returns:
- a new instance of
StandardYarnSynthOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-