Package software.amazon.awscdk.pipelines
Class SimpleSynthActionProps.Builder
java.lang.Object
software.amazon.awscdk.pipelines.SimpleSynthActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SimpleSynthActionProps>
- Enclosing interface:
SimpleSynthActionProps
@Stability(Deprecated)
@Deprecated
public static final class SimpleSynthActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<SimpleSynthActionProps>
Deprecated.
A builder for
SimpleSynthActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Deprecated.additionalArtifacts
(List<? extends AdditionalArtifact> additionalArtifacts) Deprecated.build()
Deprecated.buildCommand
(String buildCommand) Deprecated.Use `buildCommands` insteadbuildCommands
(List<String> buildCommands) 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.Use `installCommands` insteadinstallCommands
(List<String> installCommands) 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
-
synthCommand
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.Builder synthCommand(String synthCommand) Deprecated.Sets the value ofSimpleSynthActionProps.getSynthCommand()
- Parameters:
synthCommand
- The synth command. This parameter is required.- Returns:
this
-
buildCommand
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.Builder buildCommand(String buildCommand) Deprecated.Use `buildCommands` insteadSets the value ofSimpleSynthActionProps.getBuildCommand()
- Parameters:
buildCommand
- The build command. If your programming language requires a compilation step, put the compilation command here.- Returns:
this
-
buildCommands
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.Builder buildCommands(List<String> buildCommands) Deprecated.Sets the value ofSimpleSynthActionProps.getBuildCommands()
- Parameters:
buildCommands
- The build commands. If your programming language requires a compilation step, put the compilation command here.- Returns:
this
-
installCommand
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.Builder installCommand(String installCommand) Deprecated.Use `installCommands` insteadSets the value ofSimpleSynthActionProps.getInstallCommand()
- Parameters:
installCommand
- The install command. If not provided by the build image or another dependency management tool, at least install the CDK CLI here usingnpm install -g aws-cdk
.- Returns:
this
-
installCommands
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.Builder installCommands(List<String> installCommands) Deprecated.Sets the value ofSimpleSynthActionProps.getInstallCommands()
- Parameters:
installCommands
- Install commands. If not provided by the build image or another dependency management tool, at least install the CDK CLI here usingnpm install -g aws-cdk
.- Returns:
this
-
testCommands
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.Builder testCommands(List<String> testCommands) Deprecated.Sets the value ofSimpleSynthActionProps.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 SimpleSynthActionProps.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 SimpleSynthActionProps.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 SimpleSynthActionProps.Builder actionName(String actionName) Deprecated.Sets the value ofSimpleSynthOptions.getActionName()
- Parameters:
actionName
- Name of the build action.- Returns:
this
-
additionalArtifacts
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.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 SimpleSynthActionProps.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 SimpleSynthActionProps.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 SimpleSynthActionProps.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 SimpleSynthActionProps.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 SimpleSynthActionProps.Builder projectName(String projectName) Deprecated.Sets the value ofSimpleSynthOptions.getProjectName()
- Parameters:
projectName
- Name of the CodeBuild project.- Returns:
this
-
rolePolicyStatements
@Stability(Deprecated) @Deprecated public SimpleSynthActionProps.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 SimpleSynthActionProps.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 SimpleSynthActionProps.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<SimpleSynthActionProps>
- Returns:
- a new instance of
SimpleSynthActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-