@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.928Z") @Stability(value=Stable) public interface CodeBuildStepProps extends software.amazon.jsii.JsiiSerializable, ShellStepProps
Example:
CodePipeline.Builder.create(this, "Pipeline")
.synth(CodeBuildStep.Builder.create("Synth")
.input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder()
.connectionArn("arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41")
.build()))
.commands(List.of("...", "npm ci", "npm run build", "npx cdk synth", "..."))
.rolePolicyStatements(List.of(
PolicyStatement.Builder.create()
.actions(List.of("sts:AssumeRole"))
.resources(List.of("*"))
.conditions(Map.of(
"StringEquals", Map.of(
"iam:ResourceTag/aws-cdk:bootstrap-role", "lookup")))
.build()))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CodeBuildStepProps.Builder
A builder for
CodeBuildStepProps |
static class |
CodeBuildStepProps.Jsii$Proxy
An implementation for
CodeBuildStepProps |
| Modifier and Type | Method and Description |
|---|---|
static CodeBuildStepProps.Builder |
builder() |
default IRole |
getActionRole()
Custom execution role to be used for the Code Build Action.
|
default BuildEnvironment |
getBuildEnvironment()
Changes to environment.
|
default Cache |
getCache()
Caching strategy to use.
|
default BuildSpec |
getPartialBuildSpec()
Additional configuration that can only be configured via BuildSpec.
|
default String |
getProjectName()
Name for the generated CodeBuild project.
|
default IRole |
getRole()
Custom execution role to be used for the CodeBuild project.
|
default List<PolicyStatement> |
getRolePolicyStatements()
Policy statements to add to role used during the synth.
|
default List<ISecurityGroup> |
getSecurityGroups()
Which security group to associate with the script's project network interfaces.
|
default SubnetSelection |
getSubnetSelection()
Which subnets to use.
|
default Duration |
getTimeout()
The number of minutes after which AWS CodeBuild stops the build if it's not complete.
|
default IVpc |
getVpc()
The VPC where to execute the SimpleSynth.
|
getAdditionalInputs, getCommands, getEnv, getEnvFromCfnOutputs, getInput, getInstallCommands, getPrimaryOutputDirectory@Stability(value=Stable) @Nullable default IRole getActionRole()
Default: - A role is automatically created
@Stability(value=Stable) @Nullable default BuildEnvironment getBuildEnvironment()
This environment will be combined with the pipeline's default environment.
Default: - Use the pipeline's default build environment
@Stability(value=Stable) @Nullable default Cache getCache()
Default: - No cache
@Stability(value=Stable) @Nullable default BuildSpec getPartialBuildSpec()
You should not use this to specify output artifacts; those should be supplied via the other properties of this class, otherwise CDK Pipelines won't be able to inspect the artifacts.
Set the commands to an empty array if you want to fully specify
the BuildSpec using this field.
The BuildSpec must be available inline--it cannot reference a file on disk.
Default: - BuildSpec completely derived from other properties
@Stability(value=Stable) @Nullable default String getProjectName()
Default: - Automatically generated
@Stability(value=Stable) @Nullable default IRole getRole()
Default: - A role is automatically created
@Stability(value=Stable) @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=Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
If no security group is identified, one will be created automatically.
Only used if 'vpc' is supplied.
Default: - Security group will be automatically created.
@Stability(value=Stable) @Nullable default SubnetSelection getSubnetSelection()
Only used if 'vpc' is supplied.
Default: - All private subnets.
@Stability(value=Stable) @Nullable default Duration getTimeout()
For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.
Default: Duration.hours(1)
@Stability(value=Stable) @Nullable default IVpc getVpc()
Default: - No VPC
@Stability(value=Stable) static CodeBuildStepProps.Builder builder()
builder in interface ShellStepPropsCodeBuildStepProps.Builder of CodeBuildStepPropsCopyright © 2022. All rights reserved.