@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:58.614Z") @Stability(value=Deprecated) @Deprecated public interface SimpleSynthOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
import software.amazon.awscdk.services.codepipeline.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.pipelines.*;
Artifact artifact;
Bucket bucket;
IBuildImage buildImage;
BuildSpec buildSpec;
PolicyStatement policyStatement;
Subnet subnet;
SubnetFilter subnetFilter;
Object value;
Vpc vpc;
SimpleSynthOptions simpleSynthOptions = SimpleSynthOptions.builder()
.cloudAssemblyArtifact(artifact)
.sourceArtifact(artifact)
// the properties below are optional
.actionName("actionName")
.additionalArtifacts(List.of(AdditionalArtifact.builder()
.artifact(artifact)
.directory("directory")
.build()))
.buildSpec(buildSpec)
.copyEnvironmentVariables(List.of("copyEnvironmentVariables"))
.environment(BuildEnvironment.builder()
.buildImage(buildImage)
.certificate(BuildEnvironmentCertificate.builder()
.bucket(bucket)
.objectKey("objectKey")
.build())
.computeType(ComputeType.SMALL)
.environmentVariables(Map.of(
"environmentVariablesKey", BuildEnvironmentVariable.builder()
.value(value)
// the properties below are optional
.type(BuildEnvironmentVariableType.PLAINTEXT)
.build()))
.privileged(false)
.build())
.environmentVariables(Map.of(
"environmentVariablesKey", BuildEnvironmentVariable.builder()
.value(value)
// the properties below are optional
.type(BuildEnvironmentVariableType.PLAINTEXT)
.build()))
.projectName("projectName")
.rolePolicyStatements(List.of(policyStatement))
.subdirectory("subdirectory")
.subnetSelection(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnetName("subnetName")
.subnets(List.of(subnet))
.subnetType(SubnetType.ISOLATED)
.build())
.vpc(vpc)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SimpleSynthOptions.Builder
Deprecated.
|
static class |
SimpleSynthOptions.Jsii$Proxy
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static SimpleSynthOptions.Builder |
builder()
Deprecated.
|
default String |
getActionName()
Deprecated.
|
default List<AdditionalArtifact> |
getAdditionalArtifacts()
Deprecated.
|
default BuildSpec |
getBuildSpec()
Deprecated.
|
Artifact |
getCloudAssemblyArtifact()
Deprecated.
|
default List<String> |
getCopyEnvironmentVariables()
Deprecated.
|
default BuildEnvironment |
getEnvironment()
Deprecated.
|
default Map<String,BuildEnvironmentVariable> |
getEnvironmentVariables()
Deprecated.
|
default String |
getProjectName()
Deprecated.
|
default List<PolicyStatement> |
getRolePolicyStatements()
Deprecated.
|
Artifact |
getSourceArtifact()
Deprecated.
|
default String |
getSubdirectory()
Deprecated.
|
default SubnetSelection |
getSubnetSelection()
Deprecated.
|
default IVpc |
getVpc()
Deprecated.
|
@Stability(value=Deprecated) @Deprecated @NotNull Artifact getCloudAssemblyArtifact()
@Stability(value=Deprecated) @Deprecated @NotNull Artifact getSourceArtifact()
@Stability(value=Deprecated) @Deprecated @Nullable default String getActionName()
Default: 'Synth'
@Stability(value=Deprecated) @Deprecated @Nullable default List<AdditionalArtifact> getAdditionalArtifacts()
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.
Default: - No additional artifacts generated
@Stability(value=Deprecated) @Deprecated @Nullable default BuildSpec getBuildSpec()
Default: - none
@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getCopyEnvironmentVariables()
These are environment variables that are being used by the build.
Default: - No environment variables copied
@Stability(value=Deprecated) @Deprecated @Nullable default BuildEnvironment getEnvironment()
Default: BuildEnvironment.LinuxBuildImage.STANDARD_5_0
@Stability(value=Deprecated) @Deprecated @Nullable default Map<String,BuildEnvironmentVariable> getEnvironmentVariables()
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.
Default: - No additional environment variables
@Stability(value=Deprecated) @Deprecated @Nullable default String getProjectName()
Default: - Automatically generated
@Stability(value=Deprecated) @Deprecated @Nullable default List<PolicyStatement> getRolePolicyStatements()
Can be used to add acces to a CodeArtifact repository etc.
Default: - No policy statements added to CodeBuild Project Role
@Stability(value=Deprecated) @Deprecated @Nullable default String getSubdirectory()
Default: - Repository root
@Stability(value=Deprecated) @Deprecated @Nullable default SubnetSelection getSubnetSelection()
Only used if 'vpc' is supplied.
Default: - All private subnets.
@Stability(value=Deprecated) @Deprecated @Nullable default IVpc getVpc()
Default: - No VPC
@Stability(value=Deprecated) @Deprecated static SimpleSynthOptions.Builder builder()
SimpleSynthOptions.Builder of SimpleSynthOptionsCopyright © 2022. All rights reserved.