enum WindowsImageType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.WindowsImageType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#WindowsImageType |
Java | software.amazon.awscdk.services.codebuild.WindowsImageType |
Python | aws_cdk.aws_codebuild.WindowsImageType |
TypeScript (source) | aws-cdk-lib » aws_codebuild » WindowsImageType |
Environment type for Windows Docker images.
Example
declare const ecrRepository: ecr.Repository;
new codebuild.Project(this, 'Project', {
environment: {
buildImage: codebuild.WindowsBuildImage.fromEcrRepository(ecrRepository, 'v1.0', codebuild.WindowsImageType.SERVER_2019),
// optional certificate to include in the build image
certificate: {
bucket: s3.Bucket.fromBucketName(this, 'Bucket', 'amzn-s3-demo-bucket'),
objectKey: 'path/to/cert.pem',
},
},
// ...
})
Members
Name | Description |
---|---|
STANDARD | The standard environment type, WINDOWS_CONTAINER. |
SERVER_2019 | The WINDOWS_SERVER_2019_CONTAINER environment type. |
SERVER_2022 | The WINDOWS_SERVER_2022_CONTAINER environment type. |
STANDARD
The standard environment type, WINDOWS_CONTAINER.
SERVER_2019
The WINDOWS_SERVER_2019_CONTAINER environment type.
SERVER_2022
The WINDOWS_SERVER_2022_CONTAINER environment type.
Notice: Cannot be used with on-demand compute, only with a {@link BuildEnvironment.fleet}.
See also: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html