Package software.amazon.awscdk.pipelines
Class SimpleSynthOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.SimpleSynthOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SimpleSynthOptions>
- Enclosing interface:
- SimpleSynthOptions
@Stability(Deprecated)
@Deprecated
public static final class SimpleSynthOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SimpleSynthOptions>
Deprecated.
A builder for
SimpleSynthOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Deprecated.additionalArtifacts
(List<? extends AdditionalArtifact> additionalArtifacts) Deprecated.build()
Deprecated.Deprecated.cloudAssemblyArtifact
(Artifact cloudAssemblyArtifact) Deprecated.copyEnvironmentVariables
(List<String> copyEnvironmentVariables) Deprecated.environment
(BuildEnvironment environment) Deprecated.environmentVariables
(Map<String, ? extends BuildEnvironmentVariable> environmentVariables) Deprecated.projectName
(String projectName) Deprecated.rolePolicyStatements
(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.sourceArtifact
(Artifact sourceArtifact) Deprecated.subdirectory
(String subdirectory) Deprecated.subnetSelection
(SubnetSelection subnetSelection) Deprecated.Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
cloudAssemblyArtifact
@Stability(Deprecated) @Deprecated public SimpleSynthOptions.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 SimpleSynthOptions.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
Deprecated.Sets the value ofSimpleSynthOptions.getActionName()
- Parameters:
actionName
- Name of the build action.- Returns:
this
-
additionalArtifacts
@Stability(Deprecated) @Deprecated public SimpleSynthOptions.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
Deprecated.Sets the value ofSimpleSynthOptions.getBuildSpec()
- Parameters:
buildSpec
- custom BuildSpec that is merged with the generated one.- Returns:
this
-
copyEnvironmentVariables
@Stability(Deprecated) @Deprecated public SimpleSynthOptions.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 SimpleSynthOptions.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 SimpleSynthOptions.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 SimpleSynthOptions.Builder projectName(String projectName) Deprecated.Sets the value ofSimpleSynthOptions.getProjectName()
- Parameters:
projectName
- Name of the CodeBuild project.- Returns:
this
-
rolePolicyStatements
@Stability(Deprecated) @Deprecated public SimpleSynthOptions.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 SimpleSynthOptions.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 SimpleSynthOptions.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<SimpleSynthOptions>
- Returns:
- a new instance of
SimpleSynthOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-