Interface SimpleSynthOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
SimpleSynthActionProps
,StandardNpmSynthOptions
,StandardYarnSynthOptions
- All Known Implementing Classes:
SimpleSynthActionProps.Jsii$Proxy
,SimpleSynthOptions.Jsii$Proxy
,StandardNpmSynthOptions.Jsii$Proxy
,StandardYarnSynthOptions.Jsii$Proxy
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Deprecated.static final class
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSynthOptions.Builder
builder()
Deprecated.default String
Deprecated.default List<AdditionalArtifact>
Deprecated.default BuildSpec
Deprecated.Deprecated.Deprecated.default BuildEnvironment
Deprecated.default Map<String,
BuildEnvironmentVariable> Deprecated.default String
Deprecated.default List<PolicyStatement>
Deprecated.Deprecated.default String
Deprecated.default SubnetSelection
Deprecated.default IVpc
getVpc()
Deprecated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCloudAssemblyArtifact
Deprecated.(deprecated) The artifact where the CloudAssembly should be emitted. -
getSourceArtifact
Deprecated.(deprecated) The source artifact of the CodePipeline. -
getActionName
Deprecated.(deprecated) Name of the build action.Default: 'Synth'
-
getAdditionalArtifacts
@Stability(Deprecated) @Deprecated @Nullable default List<AdditionalArtifact> getAdditionalArtifacts()Deprecated.(deprecated) 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
.Default: - No additional artifacts generated
-
getBuildSpec
Deprecated.(deprecated) custom BuildSpec that is merged with the generated one.Default: - none
-
getCopyEnvironmentVariables
Deprecated.(deprecated) Environment variables to copy over from parent env.These are environment variables that are being used by the build.
Default: - No environment variables copied
-
getEnvironment
Deprecated.(deprecated) Build environment to use for CodeBuild job.Default: BuildEnvironment.LinuxBuildImage.STANDARD_5_0
-
getEnvironmentVariables
@Stability(Deprecated) @Deprecated @Nullable default Map<String,BuildEnvironmentVariable> getEnvironmentVariables()Deprecated.(deprecated) 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 in
environment
instead. However, you will not be able to use CodePipeline Variables in this case.Default: - No additional environment variables
-
getProjectName
Deprecated.(deprecated) Name of the CodeBuild project.Default: - Automatically generated
-
getRolePolicyStatements
@Stability(Deprecated) @Deprecated @Nullable default List<PolicyStatement> getRolePolicyStatements()Deprecated.(deprecated) Policy statements to add to role used during the synth.Can be used to add acces to a CodeArtifact repository etc.
Default: - No policy statements added to CodeBuild Project Role
-
getSubdirectory
Deprecated.(deprecated) Directory inside the source where package.json and cdk.json are located.Default: - Repository root
-
getSubnetSelection
Deprecated.(deprecated) Which subnets to use.Only used if 'vpc' is supplied.
Default: - All private subnets.
-
getVpc
Deprecated.(deprecated) The VPC where to execute the SimpleSynth.Default: - No VPC
-
builder
Deprecated.- Returns:
- a
SimpleSynthOptions.Builder
ofSimpleSynthOptions
-
CodePipeline
class instead